Hi,
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,
Rajiv.s
alert(getActiveDocumentIndex()) // it gives the index number
function getActiveDocumentIndex(){
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
return desc = executeActionGet(ref).getInteger(stringIDToTypeID('itemIndex'))-1;
}
North America
Europe, Middle East and Africa
Asia Pacific