Article View: adobe.scripting.indesign
Article #20397Re: Dave Saunders' Running Heads Script
From: Jay Fraser
Date: Mon, 29 Jul 2002 16:56
Date: Mon, 29 Jul 2002 16:56
15 lines
1811 bytes
1811 bytes
Hey, this is fun! I'm actually understanding some of this stuff! <g> Peter, Dave: thanks for the explains & suggestions. I always ask for word 1, never word -1 in the script, so that shouldn't be a problem. Interesting question, though. If a para starts on one page, then flows to the next, is it para -1 of the first page, para 1 of the second, or both? The problem I'd like to address is multiple empty paras at the end of the story. What I'd like to do in the last frame is tell the script "start with the last para; if that para doesn't have a 'word 1', then move up one para. Keep doing this until you find a 'word 1', then set myName to Word 1." Using the "exist" event does seem more elegant, but I'm still not sure how to put a loop in there. Thanks! Jay PS: Peter, how do you get your quoted scripts to not double space like mine do?
Technical Details
Message-ID:
<ef9de98.14@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<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-29 10:11:59 PST From: "Jay Fraser" <jayfraser@yahoo.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!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.14@WebX.aaQKaf7vad4> Date: Mon, 29 Jul 2002 09:56:18 -0700 References: <ef9de98.-1@WebX.aaQKaf7vad4> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit