Article View: adobe.scripting.indesign
Article #19358Re: Help to convert VB Script to AppleScript
From: Shane Stanley
Date: Tue, 07 Jan 2003 06:11
Date: Tue, 07 Jan 2003 06:11
22 lines
1842 bytes
1842 bytes
in article 1de74010.2@WebX.la2eafNXanI, Richard Ronnback wrote: > As I'm still learning scripting, I'm trying to understand out what the > benefits are for each approach Oh, I suspect your method is considerably faster -- using search is usually quicker than a whose clause. In fact, the only time it would make more sense to use the "apply style" method would be if you wanted to do the opposite of what's wanted here -- to retain formatting. That couldn't be done using the search command. (I skipped paragraph style 1 because that's no style, and I'm not sure why you'd want to remove manual styling from paragraphs with no style -- or whether it would be removed anyway.) You might also be safer to set the find preferences and change preferences to nothing before you start your loop, to avoid inadvertently inheriting some previous styling in the search. -- Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<BA40BAD6.49F9C%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de74010.-1@WebX.la2eafNXanI> <1de74010.2@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,5bdb0e6d7a11cf45 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-01-06 22:37:35 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-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Help to convert VB Script to AppleScript Message-ID: <BA40BAD6.49F9C%sstanley@myriad-com.com.au> Date: Mon, 6 Jan 2003 22:11:51 -0800 References: <1de74010.-1@WebX.la2eafNXanI> <1de74010.2@WebX.la2eafNXanI> Lines: 30 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