Re: INDESIGN: Problem with Object Placement
Re: INDESIGN: Problem with Object Placement
- Subject: Re: INDESIGN: Problem with Object Placement
- From: Rick Gordon <email@hidden>
- Date: Tue, 6 May 2008 20:57:43 -0700
You're right, for all normal circumstances -- except that I often use a plug-in, DTPTools PageControl, that allows multiple pages sizes, and also vertical spreads, in a document.
But thanks for the warning, as I probably should just write a separate variant for situations when I working with a document that uses that feature.
Also, now with the workaround that seems to be required to avoid spread-calculated offsets for the rectangles, y2 and x2 (practically speaking, barring vertical spreads, the focus is on x2) require a recalculation:
set x2 to (item 4 of GeometricBounds) - (item 2 of GeometricBounds)
Rick Gordon
------------------
On 5/7/08 at 1:08 PM +1000, Shane Stanley wrote in a message entitled
"Re: INDESIGN: Problem with Object Placement":
>On 7/5/08 12:41 PM, "Rick Gordon" <email@hidden> wrote:
>
>> set GeometricBounds to {item 1 of bounds, item 2 of bounds, item 3 of bounds,
>> item 4 of bounds}
>
>That's awfully inefficient -- it's asking InDesign for the bounds four times
>(look in the log). And you're then doing it for every page, even though the
>bounds you want are going to be the same throughout.
>
>Why not something like:
>
><outside the loop>
>set pageBounds to bounds of page 1
><inside loop>
>
> make new rectangle at end with properties {stroke weight:pEdgeStrokeWeight,
>stroke color:pEdgeStrokeColor, stroke alignment:outside alignment,
>geometric bounds: pageBounds, text wrap type:none, label:pLabel & vCount}
>
>
>--
>Shane Stanley <email@hidden>
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden