🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20368

Re: Dave Saunders' Running Heads Script

#20368
From: Dave Saunders
Date: Fri, 26 Jul 2002 16:57
21 lines
2130 bytes
Headdir is actually the name of BOTH a paragraph style and a character style. 

In the running head, it's the character style. In the story, it's the paragraph style. 

The script uses the character style to know which parts of the running head to replace with what it picks up from the paragraphs in the story. 

The Head1, Head2 stuff is all about dealing with cases where there's more than one instance of the paragraph style on a page. There are actually four cases to consider: 

The idea is that on any one page you have a first instance (Head1) and a last instance (Head2). If they're both present, then the script constructs <Head1> - <Head2>. If there's just one present, then it constructs <Head1>. 

Those are the two simple cases. I don't have time to look over the code to see exactly how I dealt with the other two cases (to complicate things, I wrote two versions but only posted one). The other cases are: 

No instances of the paragraph: use the most recent instance from a previous page. 

More than two instances: one script ignores the intermediate values, the other accumulates a multiple entry like: <Head1> - <Head2> -<Head3> 

I forget which one I posted. I think the former, but my client wanted the latter. 

Hope this helps. 

Dave
Technical Details
Message-ID: <ef9de98.4@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news-xfer2.newshosting.com!newspump.sol.net!news.maxwell.syr.edu!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef9de98.-1@WebX.aaQKaf7vad4> <ef9de98.1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,37e35bfe49790ac7
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-26 10:12:48 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news-xfer2.newshosting.com!newspump.sol.net!news.maxwell.syr.edu!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Dave Saunders' Running Heads Script
Message-ID: <ef9de98.4@WebX.aaQKaf7vad4>
Date: Fri, 26 Jul 2002 09:57:28 -0700
References: <ef9de98.-1@WebX.aaQKaf7vad4> <ef9de98.1@WebX.aaQKaf7vad4>
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit