Article View: adobe.scripting.indesign
Article #20822Re: Insert soft return (newby)
From: Jay Fraser
Date: Thu, 30 May 2002 20:11
Date: Thu, 30 May 2002 20:11
17 lines
1899 bytes
1899 bytes
Shane --
Thx very much. That worked.
Ole--
The "Inserter" is working fine. A couple of quex, though:
--Okay, now we want to find addresses that span multiple lines. set myFoundItems to search story 1 of myDocument with find attributes {applied character style:character style "address" of myDocument} repeat with myCounter from (count myFoundItems) to 1 by -1 set myFoundItem to item myCounter of myFoundItems set myFirstBaseline to baseline of character 1 of myFoundItem set myLastBaseline to baseline of character -1 of myFoundItem set myParaEndBaseline to baseline of character -2 of paragraph 1 of myFoundItem
1) Why both "myLastBaseline" and "myParaEndBaseline"? Wouldn't just the ParaEnd do the trick?
2) I'm confused on the "character -1" and "character -2" bits. "Character 1" is the first char in the myFoundItem, right? So is "character -1" the character before (to the right of) myFoundItem or after? and why "-2" on the paragraph -- is that because of the para character?
Thx again!
Jay
Technical Details
Message-ID:
<ef8b754.10@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!209.251.2.12.MISMATCH!news-xfer2.newshosting.com!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef8b754.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,4c5b67e22acd13de X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-30 13:38:27 PST From: "Jay Fraser" <jayfraser@yahoo.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!209.251.2.12.MISMATCH!news-xfer2.newshosting.com!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Insert soft return (newby) Message-ID: <ef8b754.10@WebX.aaQKaf7vad4> Date: Thu, 30 May 2002 13:11:28 -0700 References: <ef8b754.-1@WebX.aaQKaf7vad4> Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit