Is it possible to script using a highlighted layer.
I know that selected items can be used for scripting, but I would like to just highlight the layers I want to process but not directly select the items on those layers.
Set the boolean hasSelectedArtwork for that layer to false.
yes, use the activeLayer property
var idoc = app.activeDocument;
var ilayer = idoc.activeLayer;
alert( ilayer.pageItems.length );
Retrieving data ...