Article View: adobe.scripting.indesign
Article #20885Re: Applescript: make a text frame on a master page
From: Shane Stanley
Date: Tue, 04 Jun 2002 10:46
Date: Tue, 04 Jun 2002 10:46
41 lines
2260 bytes
2260 bytes
in article ef8e3b9.1@WebX.aaQKaf7vad4, Olivier Berquin wrote: > ���set myMainFrame to master page item ??????? Unfortunately you can't use the index of an item or the label directly, but you can use the label like this: ���set myMainFrame to master page item 1 whose label is "Main box" You can also use the id: tell application "InDesign 2.0.1" tell document 1 set n to id of text frame "Main" of master spread 1 set theFrame to master page item id n of page 1 -- do stuff to it end tell end tell The real difference from QuarkXPress is not a scripting issue so much as the quite different ways they implement master pages and items on them. Both methods have their advantages and disadvantages, but I don't think ID's method has a lot to offer the scripter. In fact, there's something to be said for having items you intend to edit on another master page altogether, and just create items as you need them, like so: tell application "InDesign 2.0.1" tell document 1 set theProps to properties of text frame "Main" of master spread 2 make text frame at page 3 with properties theProps end tell end tell This can make it easier to keep track of an item's layering, especially on pages where there are multiple layers. -- Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B922D7B5.31D96%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!cyclone.bc.net!logbridge.uoregon.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef8e3b9.-1@WebX.aaQKaf7vad4> <ef8e3b9.1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,8e47b5875d947fcb X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-04 04:07:26 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!cyclone.bc.net!logbridge.uoregon.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Applescript: make a text frame on a master page Message-ID: <B922D7B5.31D96%sstanley@myriad-com.com.au> Date: Tue, 4 Jun 2002 03:46:46 -0700 References: <ef8e3b9.-1@WebX.aaQKaf7vad4> <ef8e3b9.1@WebX.aaQKaf7vad4> Lines: 48 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.3 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit