🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2329

Re: CS3 Javascript - finding the paragraph which contain the index page reference

#2329
From: Ola_Khrapatin
Date: Fri, 26 Dec 2008 17:10
4 lines
1018 bytes
Thanks, I fixed it now. [myPara2Place = myPara1.parent.texts.itemByRange(0, myPara2.index).texts.item(0).paragraphs.length;]

But actually the script failed much eariler. I get the message "object is invalid" on the 4th line:
myPara1 = myTopics.item(0).pageReferences.item(0).sourceText.paragraphs.item(0);
Technical Details
Message-ID: <59b75803.9@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing
References: <59b75803.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4423827cf06ba747
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Ola_Khrapatin@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: CS3 Javascript - finding the paragraph
 which contain the index page reference
Message-ID: <59b75803.9@webcrossing.la2eafNXanI>
Date: Fri, 26 Dec 2008 09:10:13 -0800
References: <59b75803.-1@webcrossing.la2eafNXanI>
Lines: 7
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing