Re: InDesign script Optimization and text frame threading
Re: InDesign script Optimization and text frame threading
- Subject: Re: InDesign script Optimization and text frame threading
- From: Shane Stanley <email@hidden>
- Date: Tue, 14 Feb 2006 10:53:46 +1100
- Thread-topic: InDesign script Optimization and text frame threading
On 14/2/06 7:51 AM, "David Wolfe" <email@hidden> wrote:
> 1) Is there a better way to iterate through the pages in the document
> to make the script more streamlined and more flexible for different
> document lengths?
>
> 2) How can I script the threading of each overridden text frame to
> the one on the next (or previous) page?
This will do both:
repeat with i from 1 to count of pages
if i mod 2 = 0 then
set newFrame to override myCreditFrameVerso destination page
page i
set previous text frame of newFrame to text frame
"masterpageFrameRecto" of page (i - 1)
else
set newFrame to override myCreditFrameRecto destination page
page i
if i > 1 then
set previous text frame of newFrame to text frame
"masterpageFrameVerso" of page (i - 1)
end if
end if
end repeat
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions NJ May 06 <http://www.scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden