🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1589

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

#1589
From: SCUBILION_fr�re
Date: Sun, 01 Feb 2009 07:26
11 lines
1409 bytes
Dear Sir,

I realize that the response to my snd question was in your first response, excuze me, I long to understand. In javascript, your code works very well. But in vbscript, there is a problem :
myStory.characters.itemByRange(0,myLine.index) don't give a text but a collection of characters, and I can't ask for ".texts(0).lines.length", it give me an error.

if I select the collection, like thereafter, I get an error because myselection isn't a text object !

myselection = myStory.characters.itemByRange(0,myLine.index).select
myselection.texts(0).lines.length.

And I can't use javascript, because my Grep search text "(?<=~b)\u{1,2} \d{1,2}" contains a lookbehind option that javascript doesn't understand ! Do you have another solution ? Br. Scubilion
Technical Details
Message-ID: <59b75803.25@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!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: SCUBILION_fr�re@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: <59b75803.25@webcrossing.la2eafNXanI>
Date: Sat, 31 Jan 2009 23:26:42 -0800
References: <59b75803.-1@webcrossing.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit