Push to newlist
Hey,
Basicly i have a list of all the files that are open in photoshop.
I was wondering if I could push a variable called "New file" into this list.
And check afterwards if the file is called like this.
var itemDoc = null;
//Dropdown list
w.NewList=w.add ("dropdownlist", undefined, app.documents);
w.NewList.preferredSize.width = 275;
//Place open files in list
w.NewList.selection = 0;
itemDoc = w.NewList.selection.index;
//Get selected document from list
w.NewList.onChange= function ()
{
itemDoc = w.NewList.selection.index;
return itemDoc;
}