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: Wed, 15 Feb 2006 14:35:40 +1100
- Thread-topic: InDesign script Optimization and text frame threading
On 15/2/06 8:59 AM, "David Wolfe" <email@hidden> wrote:
> Thanks again Shane. That got me past line 1. Now I get "InDesign CS
> got an error: Invalid parameter." on the line:
>
> set newFrame to override myCreditFrameRecto destination page page i
>
> The part highlighted when I run the script is:
>
> override myCreditFrameRecto destination page page i
Are your frames on the right master pages? As your code stands, they won't
be if you have view preferences set to spread origin (the default).
Make a new document with several pages, and run this:
tell application "InDesign CS"
tell document 1
set ruler origin of view preferences to page origin
tell page 1 of master spread 1
set myCreditFrameVerso to make new text frame with properties
{content type:text type, geometric bounds:{63.75, 3.0, 64.25, 44.625},
label:"masterpageFrameVerso"}
end tell
tell page 2 of master spread 1
set myCreditFrameRecto to make new text frame with properties
{content type:text type, geometric bounds:{63.75, 6.375, 64.25, 48.0},
label:"masterpageFrameRecto"}
end tell
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
end tell
end tell
--
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