Article View: adobe.scripting.indesign
Article #8628Re: Get (relative) index of a paragraph inside a selection of paragraphs
From: Robert Tkaczyk
Date: Sun, 01 Oct 2006 18:58
Date: Sun, 01 Oct 2006 18:58
11 lines
1328 bytes
1328 bytes
> 3. my question: in which paragraph, counted from the beginning of the selection, is the last occurrence of the searched string in. iterate backward app.selection[0].paragraphs collection and search in contents of every paragraph - your text if there is your text in processed paragraph - you found last paragraph with your text robin -- www.adobescripts.com
Technical Details
Message-ID:
<45221C69E780BF8D23648B45BCB878B9@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossingReferences:
<3bc1d60c.-1@webcrossing.la2eafNXanI> <3bc1d60c.6@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,11f901afe18132ac X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Robert Tkaczyk <indesignscripts@wp.pl> Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Get (relative) index of a paragraph inside a selection of paragraphs Message-ID: <45221C69E780BF8D23648B45BCB878B9@in.webcrossing.la2eafNXanI> Date: Sun, 1 Oct 2006 11:58:29 -0700 References: <3bc1d60c.-1@webcrossing.la2eafNXanI> <3bc1d60c.6@webcrossing.la2eafNXanI> Lines: 13 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) X-Antivirus: avast! (VPS 0639-4, 2006-09-29), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit