Article View: adobe.scripting.indesign
Article #15204Re: Simple search problem (VB)
From: Dave_Saunders
Date: Fri, 26 Dec 2003 14:34
Date: Fri, 26 Dec 2003 14:34
12 lines
1228 bytes
1228 bytes
The fourth parameter is for the change to string. The fifth is the find attributes and the sixth is the change attributes.
I'm familiar with AppleScript and JavaScript, so I can't help with the specific syntax. However, you can check the settings of these preferences by simply looking at the Find/Change More Options. If they're not set, then the preferences are how you need them anyway.
A thing to remember is that the search command always returns a list, so in JS, I had to write:
myFound = app.documents[0].search("Fred",false,true)
alert(myFound[0].contents)
Hope this helps.
Dave
Technical Details
Message-ID:
<2ccf132a.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf132a.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,3ae05d8eadbca924 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-26 06:37:35 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Simple search problem (VB) Message-ID: <2ccf132a.2@webx.la2eafNXanI> Date: Fri, 26 Dec 2003 06:34:01 -0800 References: <2ccf132a.-1@webx.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit