Article View: adobe.scripting.indesign
Article #2310CS3 Javascript - finding the paragraph which contain the index page reference
From: Ola_Khrapatin
Date: Tue, 23 Dec 2008 21:32
Date: Tue, 23 Dec 2008 21:32
12 lines
1143 bytes
1143 bytes
Hi, I've been trying to cook a script which has the following function: It gets a topic's page reference, and return the index in the story of the paragraph which contains the source text. I figured the line should look something like that (i made it specific for the example): myParagraphIndex = app.activeDocument.indexes.item(0).topics.item(0).pageReferences.item(0).sourceText.parent.index; The problem is, that this line return the index of the parent story. How can I get the index of the containing paragraph?? Thanks, Ola
Technical Details
Message-ID:
<59b75803.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,4423827cf06ba747,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Ola_Khrapatin@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: CS3 Javascript - finding the paragraph which contain the index page reference Message-ID: <59b75803.-1@webcrossing.la2eafNXanI> Date: Tue, 23 Dec 2008 13:32:10 -0800 Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit