Article View: adobe.scripting.indesign
Article #2320Re: CS3 Javascript - finding the paragraph which contain the index page reference
From: Ola_Khrapatin
Date: Fri, 26 Dec 2008 00:52
Date: Fri, 26 Dec 2008 00:52
9 lines
3904 bytes
3904 bytes
<div dir="rtl">You are right. This is also an option. But for my specific script I need it to be according to paragraphs because the page numbers might change, you see, and with paragraphs it is very accurate. I am sure there is some reasonable way to achieve this, but I failed to find it so far... Any clues?<br> <br> <div><span class="gmail_quote">2008/12/26, Robert_Tkaczyk <<a href="mailto:member@adobeforums.com">member@adobeforums.com</a>>:</span> <blockquote class="gmail_quote" style="BORDER-RIGHT: #ccc 1px solid; PADDING-RIGHT: 1ex; PADDING-LEFT: 1ex; MARGIN: 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">A new message was posted by Robert_Tkaczyk in<span class="q"><br> <br>InDesign Scripting --<br> CS3 Javascript - finding the paragraph which contain the index page reference<br><br></span>if you need to get page - you don't need paragraph index - you can get page by getting parent of ParentTextFrame of first character of your paragraph<br> <br>in VB it will be something like this:<br><br>PageName = myPara.Characters.Item(1).ParentTextFrames.Item(1).Parent.Name<br><br>robin<br><br>-- <br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.adobescripts.com/" target="_blank">www.adobescripts.com</a><br> <br><br>------------------------------------------------------<br>View/reply at <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.adobeforums.com/webx?13@@.59b75803/2" target="_blank">http://www.adobeforums.com/webx?13@@.59b75803/2</a>><span class="q"><br> Replies by email are OK.<br></span>Use the unsubscribe form at <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.adobeforums.com/webx?280@@.59b75803!folder=.eea52bc" target="_blank">http://www.adobeforums.com/webx?280@@.59b75803!folder=.eea52bc</a>> to cancel your email subscription.<br> </blockquote></div><br></div>
Technical Details
Message-ID:
<23d69ac20812251652h472e30a3h37659c072d021cca@mail.gmail.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<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
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS3 Javascript - finding the paragraph
which contain the index page reference
Message-ID: <23d69ac20812251652h472e30a3h37659c072d021cca@mail.gmail.com>
Date: Thu, 25 Dec 2008 16:52:27 -0800
References: <59b75803.-1@webcrossing.la2eafNXanI>
Lines: 32
Received: from ey-out-1920.google.com [74.125.78.148] by adobeforums.com; Thu, 25 Dec 2008 16:52:58 -0800
Received: by ey-out-1920.google.com with SMTP id 26so294485eyw.50
for <adobe.scripting.indesign@adobeforums.com>; Thu, 25 Dec 2008 16:52:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:to
:subject:in-reply-to:mime-version:content-type:references;
bh=gWdBH5m0ZMvED8ENK8/qS7ZVXDjlZ2uMVlEe7nWXVyc=;
b=NKFxP+p99F/Q6YNSndfZSz3WfA22uJqw6pObGDRl0SltO/cZPCzPGA6/0LwhhClZPT
0A2EHKO+f1pN9VFmSsaWHjcGP6BopzsKZpc49XAbpjh3rqbOQ+3RiN4kxBc5lTbTkbYv
m4O9XaTwobyRU13H9nh2kq+reFNoZecNAEyzw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:to:subject:in-reply-to:mime-version
:content-type:references;
b=m4gudOENDV4tziOKF5+WQfIRzyygN1nR7kvwoZDqtbFeNUJmbA9q7JxSbJ83SgKOjC
q7sev0jH5tAcar0TBooe+FKRaQRYaJhz6LToiiVOjAiADYy9RcIDtDeYMnAaEWj7JlMb
OLix7fz856EendySztp6GM/2wMs5+3elZngP4=
Received: by 10.210.66.13 with SMTP id o13mr11953006eba.106.1230252748000;
Thu, 25 Dec 2008 16:52:28 -0800 (PST)
Received: by 10.210.78.8 with HTTP; Thu, 25 Dec 2008 16:52:27 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit