Article View: adobe.scripting.indesign
Article #8631Re: Get (relative) index of a paragraph inside a selection of paragraphs
From: Peter_Kahrel
Date: Mon, 02 Oct 2006 00:13
Date: Mon, 02 Oct 2006 00:13
10 lines
1123 bytes
1123 bytes
Martin, You don't need any indexes, use characters.itemByRange( char1, char2 ) instead, like this: commas = myPar.search( ',' ) return myPar.characters.itemByRange( myPar.characters[0], commas[1] ).contents.join() (characters.itemByRange( myPar.characters[0], commas[1] ).contents returns an array of characters, so use join() to create string.) Peter
Technical Details
Message-ID:
<3bc1d60c.9@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossingReferences:
<3bc1d60c.-1@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: Peter_Kahrel@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Get (relative) index of a paragraph inside a selection of paragraphs Message-ID: <3bc1d60c.9@webcrossing.la2eafNXanI> Date: Sun, 1 Oct 2006 17:13:45 -0700 References: <3bc1d60c.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit