Article View: adobe.scripting.indesign
Article #20740Re: Applescript: make a text frame on a master page
From: Dave Saunders
Date: Tue, 04 Jun 2002 14:54
Date: Tue, 04 Jun 2002 14:54
15 lines
1425 bytes
1425 bytes
Ah, I left out the "1" in the first statement. Well, i did say it was "something like." My code should read: try set myFrame to (text frame 1 whose label is "Main Box") on error set myFrame to (master page item 1 whose label is "Main Box") end I'm forever leaving out those "1"s and it takes an age to work out what's wrong. By the way, as an extra check, you can do this with the on error code: on error try set myFrame to (master page item 1 whose label is "Main Box") on error -- wrong master page so take some other action end try end try Dave
Technical Details
Message-ID:
<ef8e3b9.6@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!image.surnet.ru!surnet.ru!newsfeed.rt.ru!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef8e3b9.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8e47b5875d947fcb X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-04 08:09:36 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!image.surnet.ru!surnet.ru!newsfeed.rt.ru!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.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: <ef8e3b9.6@WebX.aaQKaf7vad4> Date: Tue, 4 Jun 2002 07:54:27 -0700 References: <ef8e3b9.-1@WebX.aaQKaf7vad4> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit