Article View: adobe.scripting.indesign
Article #2395How to find the paragraph and line numbers [CS3] [JS]
From: Tom_Tomasko
Date: Sat, 03 Jan 2009 06:49
Date: Sat, 03 Jan 2009 06:49
15 lines
1201 bytes
1201 bytes
Hello, I have a script that finds certain text formatting. Rather than having the script select all the instances of this text I have an alert that lists the page number and the contents for each found instance. The following gets those. var pageNumber = myFoundSet[n].parentTextFrames[0].parent.name; var foundContents = myFoundSet[n].contents; However, I would like to include the number of the paragraph where the found text resides as well as the line number in that paragraph. I am stumped on how to do this. Would be nice if there were a parentParagraph and a parentLine. Can someone point me in a direction? Thanks, Tom
Technical Details
Message-ID:
<59b76a0e.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,c3c179ce83c93376,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Tom_Tomasko@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: How to find the paragraph and line numbers [CS3] [JS] Message-ID: <59b76a0e.-1@webcrossing.la2eafNXanI> Date: Fri, 2 Jan 2009 22:49:55 -0800 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit