Article View: adobe.scripting.indesign
Article #19954Re: formatting an entire story
From: Dave Saunders
Date: Thu, 07 Nov 2002 21:05
Date: Thu, 07 Nov 2002 21:05
23 lines
1666 bytes
1666 bytes
Is this the only story in the document? The only story on page 1? How can the script know which story to work on?
Are you using a template for the documents? If so, and there are many stories, one way to flag the story to the script is (in the template) give the first text frame of the story a script label and then the script can look for that.
set myStory to parent story of text frame 1 whose label is "whatever"
Something along those lines will get you the story.
Then, you can just reference the paragraphs by number:
set applied paragraph style of paragraphs of myStory to paragraph style
"Fred" of document 1
set applied paragraph style of paragraph 1 of myStory to paragraph style
"Head" of document 1
repeat with n from 2 to (count of paragraphs of myStory)
etc.
Dave
Dave
Technical Details
Message-ID:
<1de68124.2@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!198.108.1.146.MISMATCH!newsxfer.itd.umich.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de68124.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,2611bb6a4523f71c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-07 13:12:02 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!198.108.1.146.MISMATCH!newsxfer.itd.umich.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: formatting an entire story Message-ID: <1de68124.2@WebX.la2eafNXanI> Date: Thu, 7 Nov 2002 13:05:41 -0800 References: <1de68124.-1@WebX.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit