🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2102

Re: How to find the paragraph and line numbers [CS3] [JS]

#2102
From: Tom_Tomasko
Date: Sat, 03 Jan 2009 16:40
12 lines
1170 bytes
Peter,
Excellent! I have not tried it with the line number but the paragraph number works perfectly. It is rather convoluted how one has to arrive at the end, but I guess that is scripting.

Robert,
You referred me to another discussion but that is about creating indexes. I had read it earlier but did not find it useful for this problem.

Here is a snippet of the code:

var paraNumber = myFoundSet[n].parentStory.characters.itemByRange(myFoundSet[n].parentTextFrames[0].insertionPoints[0].index,myFoundSet[n].index).paragraphs.length;

Thanks again,
Tom
Technical Details
Message-ID: <59b76a0e.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b76a0e.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c3c179ce83c93376
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: Re: How to find the paragraph and line numbers [CS3] [JS]
Message-ID: <59b76a0e.2@webcrossing.la2eafNXanI>
Date: Sat, 3 Jan 2009 08:40:24 -0800
References: <59b76a0e.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit