Hi Jarek,
I have just modified your valuable worthy one, like this.
I'm wondering, If i'm right.
I'm adjusting the sleep time from 700 to 100, assuming, I could get the Real speed while finding and changing the text.
Because fixing 700 as a sleep time, makes the find and change function slower.
Correct me, if I'm wrong!. Advice me, how could i get the real speed time when using progree bar method.
app.findTextPreferences.findWhat = "INSTRUCTION NOT PROVIDED";
var myDoc = app.activeDocument,
mFound = myDoc.findText(),
currText,
progressWin = new Window ("palette", "" , [50, 150, 384, 240]),
progressBar = progressWin.add ("progressbar", [12, 12, 312, 32], 0, mFound.length -1),
mText = progressWin.add("statictext",[12, 52, 312, 72]);
progressWin.show();
for ( var count = 1; count <= mFound.length; count ++) {
//progressBar.value = count ;
mText.text = "completed" + count/mFound.length*100 + " of 100%";
currText = mFound[count-1];
currText.select();
//currText.showText();
$.sleep(100);
currText.contents = "Rajni";
$.sleep(00);
}
app.findTextPreferences = null;
progressWin.close();
many many thanks Jarek.