Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by Keith_Gilbert
Thu, 12 Feb 2009 21:46
[JS CS3] Display number of changes made
Author: Keith_Gilbert
Date: Thu, 12 Feb 2009 21:46
Date: Thu, 12 Feb 2009 21:46
7 lines
983 bytes
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?
Re: [JS CS3] Display number of changes made
Author: Peter Kahrel
Date: Thu, 12 Feb 2009 21:59
Date: Thu, 12 Feb 2009 21:59
6 lines
818 bytes
818 bytes
app.findGrepPreferences.findWhat = "grepstringtofind";
app.changeGrepPreferences.changeTo = "";
f = myDoc.changeGrep();
alert ("Search is completed. " + f.length + " replacement(s) made.")
Peter
Re: [JS CS3] Display number of changes made
Author: Keith_Gilbert
Date: Thu, 12 Feb 2009 22:15
Date: Thu, 12 Feb 2009 22:15
3 lines
731 bytes
731 bytes
Thank you Peter. Perfect! I didn't know I could do that, but it makes perfect sense. Thanks for helping me get my head around this. Keith
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads