Article View: adobe.incopy.scripting
Article #36Applescript/ IC CS3 / how to direct an action to the current story
From: Jim_Huddle
Date: Fri, 01 Aug 2008 21:53
Date: Fri, 01 Aug 2008 21:53
14 lines
1185 bytes
1185 bytes
I am writing a script to chain a series of find/changes. I want the routine to run only to the current story, and don't know the syntax. Here's a piece of the script applied to the entire document: set find what of find grep preferences to "~b~b+" set change to of change grep preferences to " " tell document 1 set myFoundItems1 to change grep end tell How can I get this to run on just the current story? Any help will be appreciated! Thanks.
Technical Details
Message-ID:
<59b6019a.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!news4us.nl!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe4a,2a71a1b20749396d,start X-Google-Attributes: gid1efe4a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Jim_Huddle@adobeforums.com Newsgroups: adobe.incopy.scripting Subject: Applescript/ IC CS3 / how to direct an action to the current story Message-ID: <59b6019a.-1@webcrossing.la2eafNXanI> Date: Fri, 1 Aug 2008 14:53:43 -0700 Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!news4us.nl!webcrossing X-Original-Lines: 16 X-Original-Bytes: 928