🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #460

Re: CS3 JS flag which page has empty frame

#460
From: John_Kordas
Date: Sat, 21 Mar 2009 12:12
15 lines
1333 bytes
Thanks again Dave I've been working my way through OMV and I think I'm finally getting it. Also went back to the scripting guide.

This is working for me:
for (var j = myPages.length - 1; j >= 0; j--) {
	if(myPages[j].rectangles.length >= 1 && myPages[j].allGraphics.length > 0 ){
			myPages.item(j).rectangles.item(0).fit(FitOptions.proportionally);
			myPages.item(j).rectangles.item(0).fit(FitOptions.centerContent);
	}
}

Interestingly I found that if I use

myPages.item(j).rectangles.item(0).geometricBounds = [0,0,144,144];

Then rectangle that is on the right hand page ends up on the left hand page. I would of thought that 0,0 would put the rectangle at the top left corner of the right hand page not the left hand page.
Technical Details
Message-ID: <59b83b3d.6@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b83b3d.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5f85c25f887dafb2
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: John_Kordas@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS3 JS flag which page has empty frame
Message-ID: <59b83b3d.6@webcrossing.la2eafNXanI>
Date: Sat, 21 Mar 2009 05:12:41 -0700
References: <59b83b3d.-1@webcrossing.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit