Article View: adobe.scripting.indesign
Article #21033Running Head Script
From: Dave Saunders
Date: Sat, 18 May 2002 22:04
Date: Sat, 18 May 2002 22:04
11 lines
1973 bytes
1973 bytes
For a directory I'm developing, I needed to have running heads that relate to the contents of the pages they head. So, I wrote the following script (with some help from Ole). Originally, I toyed with writing a general purpose script that would work with any document. But that proved to be troublesome, and being under deadline, I pulled back and produced a script that works for me. Still, I can see how the techniques might be useful for others, so here it is as I needed it. My document has one main story that snakes through many pages. On each page there are exactly two text frames from the story, so I took advantage of that in one of the repeat loops. The script only does the running heads on pages that are visited by the story in question. (In my case, that meant I had to do one head manually.) I used the technique of having a character style named for the paragraph style that contains the information I needed in the running head. The script is capable of being re-run; if the head on a page has already been released to the page, then the script picks this up rather than try to release it again (which would fail). Hope someone finds it useful. Dave
Technical Details
Message-ID:
<ef89cf8.-1@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!hub1.nntpserver.com!newsfeed.newzpig.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!newsfeed.esat.net!skynet.be!skynet.be!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,1646cc11453fc57 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-18 15:37:26 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!hub1.nntpserver.com!newsfeed.newzpig.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!newsfeed.esat.net!skynet.be!skynet.be!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Running Head Script Message-ID: <ef89cf8.-1@WebX.aaQKaf7vad4> Date: Sat, 18 May 2002 15:04:52 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit