• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: InDesign script Optimization and text frame threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: InDesign script Optimization and text frame threading
      • From: David Wolfe <email@hidden>
References: 
 >Re: InDesign script Optimization and text frame threading (From: David Wolfe <email@hidden>)

  • Prev by Date: Re: ALL USERS PLEASE READ
  • Next by Date: Re: Another Shell Script question ftp
  • Previous by thread: Re: InDesign script Optimization and text frame threading
  • Next by thread: Re: InDesign script Optimization and text frame threading
  • Index(es):
    • Date
    • Thread