Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 119881

Re: %tage of completion in progression bar

$
0
0

Hi,

 

Looks like your list.length is always == 0 (app.changeText() called twice)

I am afraid you can't display a progress of method ( changeText() ) using progressbar.

 

However you could try this;

 

 

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], "1 element of " + mFound.length);  
progressWin.show(); for ( var count = 1; count <= mFound.length; count ++) {     progressBar.value = count ;     mText.text = count + " element of " + mFound.length;     currText = mFound[count-1];     currText.select();     currText.showText();     $.sleep(300);     currText.contents = "Rajni";     $.sleep(700);     } 
app.findTextPreferences = null;
progressWin.close();

 

rgds

Jarek


Viewing all articles
Browse latest Browse all 119881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>