Article View: adobe.scripting.indesign
Article #969Re: Array of Text Objects changes when content of Elements is changed
From: Olav_Kvern
Date: Tue, 24 Feb 2009 19:36
Date: Tue, 24 Feb 2009 19:36
9 lines
1018 bytes
1018 bytes
Hi Joerg, The only way to avoid iterating backwards through the results is to re-do your search after each change, searching the text from each change to the end of the story. By the way--a straight JavaScript RegExp search won't give you an array of text objects, it'll give you an array of strings. Did you meant that you were using InDesign's findGrep method? Thanks, Ole
Technical Details
Message-ID:
<59b8095a.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b8095a.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,bf216ff92a3fd4a2 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Olav_Kvern@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Array of Text Objects changes when content of Elements is changed Message-ID: <59b8095a.1@webcrossing.la2eafNXanI> Date: Tue, 24 Feb 2009 11:36:50 -0800 References: <59b8095a.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit