How to Select the Document just back of the Active Document
If there are 5 documents open in photoshop I want to select the document just behind or back of the Active Document , using script.
One of my friend suggested me the bleow script, but it is selecting the previous document, not exactly the document back of the active document.
please help me.
var id85 = charIDToTypeID( "slct" );
var desc21 = new ActionDescriptor();
var id86 = charIDToTypeID( "null" );
var ref11 = new ActionReference();
var id87 = charIDToTypeID( "Dcmn" );
ref11.putOffset( id87, -1 );
desc21.putReference( id86, ref11 );
executeAction( id85, desc21, DialogModes.NO )