For example: I have opened 10 documents at a time. But I have to get active one of an existing document.
How do i get activate a particular existing document by name through Photoshop scripting?
so could you please help me on this...
thanks in advance,
alert(getActiveDocumentIndex()) // it gives the index number
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
return desc = executeActionGet(ref).getInteger(stringIDToTypeID('itemIndex'))-1;
Europe, Middle East and Africa