🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2109

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

#2109
From: Ola_Khrapatin
Date: Sun, 04 Jan 2009 11:18
11 lines
3729 bytes
<div dir="rtl"><div>I didn&#39;t quite get it, how is it that it tries to range over far more texts than in the story? How is it different with the characters?</div>
<div>&nbsp;</div>
<div>Ola<br><br>&nbsp;</div>
<div><span class="gmail_quote">2009/1/3, Peter Kahrel &lt;<a href="mailto:member@adobeforums.com">member@adobeforums.com</a>&gt;:</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 Peter Kahrel in <br><br><b>InDesign Scripting</b> --<br>
&nbsp;&nbsp;CS3 Javascript - finding the paragraph which contain the index page reference<br><br>myPara.index is the index of myPara&#39;s first insertion point, so ...texts.itemByRange (0, myPara.index) tries to range over far more Texts than there are in the story. Instead, range over characters: 
<blockquote><tt>myPcount = myPara.parentStory.characters.itemByRange(0, myPara.index).paragraphs.length; </tt></blockquote><br><br>Peter <br><br>
<hr align="left" width="200">
View/reply at <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.adobeforums.com/webx?13@@.59b75803/14" target="_blank">CS3 Javascript - finding the paragraph which contain the index page reference</a><br>
Replies by email are OK.<br>Use the <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.adobeforums.com/webx?280@@.59b75803!folder=.eea52bc" target="_blank">unsubscribe</a> form to cancel your email subscription.<br>
<br></blockquote></div><br></div>
Technical Details
Message-ID: <23d69ac20901040318n2d19c1e3p633b3314aeb381ee@mail.gmail.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder4.cambrium.nl!feed.tweaknews.nl!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: <23d69ac20901040318n2d19c1e3p633b3314aeb381ee@mail.gmail.com>
Date: Sun, 4 Jan 2009 03:18:06 -0800
References: <59b75803.-1@webcrossing.la2eafNXanI>
Lines: 10
Received: from fk-out-0910.google.com [209.85.128.191] by adobeforums.com; Sun, 4 Jan 2009 03:18:37 -0800
Received: by fk-out-0910.google.com with SMTP id z22so3774892fkz.6
        for <adobe.scripting.indesign@adobeforums.com>; Sun, 04 Jan 2009 03:18:06 -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=b1NxO/0fT3GonRxYQaaWuybgYBGWJq6LLXEULZySxP4=;
        b=j1N14XxUVgVs17v5zznxKmRhznN9YHZe/IocEV9KQaAhG6P1NTu0l87Hf6VLtabnWl
         XOhsjrZbqFCZo1KNPoh5zdhLByFKp0cxn9GQxTba+l2O05P3WyYQqKuw95q8sHkv9dBS
         OItW8xC9wuu7ZUYxfP9NQ5UICoGyYnHwtKze4=
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=Y1Q7wUR5c7eEFIojZIDcQuYd8L6X5cYtFy2sGlBDxuQ3NqoYkEeiGsoUT5299nfp7l
         I7UicyJSXexnRlyGchMvymL19p3PGmWBFsWfgmIcF49co0FN9XUYEIEr9tmWGGrt0W+Q
         nQAzt2JLy/K+gAs+RIrKxCVZQb5oCmVlVWzRU=
Received: by 10.103.240.15 with SMTP id s15mr6980487mur.82.1231067886506;
        Sun, 04 Jan 2009 03:18:06 -0800 (PST)
Received: by 10.103.94.8 with HTTP; Sun, 4 Jan 2009 03:18:06 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder4.cambrium.nl!feed.tweaknews.nl!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing
X-Original-Lines: 29