🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20167

Re: search for/replacing with nuttiness

#20167
From: Jay Fraser
Date: Fri, 25 Oct 2002 14:58
39 lines
1563 bytes
... which kept bombing InDesign. Cut down to the essentials, here's the script: 



tell application "InDesign 2.0.1"
 
   set find preferences to nothing
 
   set change preferences to nothing
 
   tell document 1
 
      search for "..." replacing with "^t"
 
   end tell
 
end tell
 




If I run that, InD quits. If I try: 



search for "..." replacing with "^t^t^t"



it works. I tried several different characters and itterations, and the key problem seems to be that if the text in "replacing with" is fewer characters than the text in "search for", the program bombs. 

I tried this both at work and at home. Both machines are running InD 2.0.1 and Mac OS 9.2. 

Can anyone else reproduce this & prove I'm not nuts? And can anyone think of a workaround? 

Thanks! 

Jay
Technical Details
Message-ID: <1de6523f.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.osn.de!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6523f.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,6f1a17dcb89c5d98,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-10-25 10:02:02 PST
From: "Jay Fraser" <jayfraser@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.osn.de!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: search for/replacing with nuttiness
Message-ID: <1de6523f.0@WebX.la2eafNXanI>
Date: Fri, 25 Oct 2002 07:58:05 -0700
References: <1de6523f.-1@WebX.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit