I use a message window (a palette) to display what a script is up to when it is running. A script that processes a bunch of files could display each file name in succession:
// create a message window
mess = create_mess (30, 'Example');
docs = // get a bunch of documents
for (i = 0; i < docs.length; i++)
{
app.open (docs);
// show the current file's name in the message window
mess.text = app.activeDocument.name;
...
...
app.activeDocument.close()
}
function create_mess (le, title)
{
dlg = new Window('palette', title);
dlg.alignChildren = ['left', 'top'];
var txt = dlg.add('statictext', undefined, '');
txt.characters = le;
dlg.show();
return txt
}
... View more