🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18017

Re: Possible bug in Story search (AS).

#18017
From: Dave Saunders
Date: Mon, 05 May 2003 21:15
11 lines
1371 bytes
John,

The reason it crashes on the search is because you're incorporating the replace into your search.

You need to only search for the string of interest and then use the resulting list of references (taking care to iterate through them backwards) to do the replace by setting the contents of each to "".

Take a careful look at the example I provided and you'll see how to do it -- it's not as fast as a straight Find and Replace, but it doesn't crash.

This is an acknowledged bug and the only way around it is to do the kind of thing I did in that message.

Dave
Technical Details
Message-ID: <1de9003f.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de9003f.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e0bb922fa0b0dec7
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-05 14:37:38 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Possible bug in Story search (AS).
Message-ID: <1de9003f.2@WebX.la2eafNXanI>
Date: Mon, 5 May 2003 14:15:23 -0700
References: <1de9003f.-1@WebX.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit