🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1391

[JS CS3] Display number of changes made

#1391
From: Keith_Gilbert
Date: Thu, 12 Feb 2009 21:46
7 lines
983 bytes
My script does a simple GREP find/change:

app.findGrepPreferences.findWhat = "grepstringtofind";
app.changeGrepPreferences.changeTo = "";
myDoc.changeGrep();

Is there any way to have the script display the "Search is completed. 121 replacement(s) made." dialog box that appears when "Change All" is clicked in the GREP find/change UI? Or alternatively, to somehow programmatically count how many changes were made?
Technical Details
Message-ID: <59b7e619.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ea62cc2334a346d9,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Keith_Gilbert@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [JS CS3] Display number of changes made
Message-ID: <59b7e619.-1@webcrossing.la2eafNXanI>
Date: Thu, 12 Feb 2009 13:46:52 -0800
Lines: 10
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit