Article View: adobe.scripting.indesign
Article #20138Re: [AS] How can I make my script shorter ?
From: Shane Stanley
Date: Thu, 17 Oct 2002 22:31
Date: Thu, 17 Oct 2002 22:31
35 lines
1823 bytes
1823 bytes
in article 1de632fc.-1@WebX.la2eafNXanI, Olivier Berquin wrote: > How can I "put" these two lines into only one ? > > set myTextWrap to text wrap of the properties of myTextFrame > if myTextWrap is not "none" then... > Don't bother getting all the properties; it just takes longer. And none in this case is not a string but an enumeration. Try: if text wrap of myTextFrame is not none then > > In the same idea, what's the better way: > > > tell application "InDesign 2.0.1" > set myDocument to active document > set myName to name of myDocument > set myPages to pages of myDocument > end tell > > > or : > > > tell application "InDesign 2.0.1" > set myName to name of active document > set myPages to pages of active document > end tell Whatever you're comfortable with. -- Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B9D57755.41446%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!xmission!newsfeed-east.nntpserver.com!nntpserver.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de632fc.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,d81de8ac449c1341 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-10-21 03:59:37 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-06!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!xmission!newsfeed-east.nntpserver.com!nntpserver.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [AS] How can I make my script shorter ? Message-ID: <B9D57755.41446%sstanley@myriad-com.com.au> Date: Thu, 17 Oct 2002 15:31:18 -0700 References: <1de632fc.-1@WebX.la2eafNXanI> Lines: 37 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit