Article View: adobe.scripting.indesign
Article #17210Re: (AS) OT fractions feature?
From: Jay Fraser
Date: Tue, 24 Jun 2003 22:02
Date: Tue, 24 Jun 2003 22:02
38 lines
1623 bytes
1623 bytes
Hey, Eric --
To do all stories, you have to put in another repeat loop:
tell myDocument
repeat with j from 1 to (count stories)
set myStory to story j
--do stuff
end repeat
end tell
Then to check for paragraph style, put this after the repeat that iterates through the paragraphs:
set myParaName to name of applied paragraph style of paragraph i
if myParaName = "ThisStyle" then
-- do more stuff
end if
I haven't tested these, as you wanted to do the fun part yourself. [grin] I think they are right.
BTW: the original script deleted the parens; do you want it to do that? If not, remove the lines that read:
set contents of character myCloseParen to ""
set contents of character myOpenParen to ""
HTH
Technical Details
Message-ID:
<1de9a683.11@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9a683.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,f332520123d2c8c6 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-24 15:08:02 PST From: "Jay Fraser" <jayfraser@yahoo.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!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: (AS) OT fractions feature? Message-ID: <1de9a683.11@WebX.la2eafNXanI> Date: Tue, 24 Jun 2003 15:02:37 -0700 References: <1de9a683.-1@WebX.la2eafNXanI> Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit