Hiya
app.activeDocument.activeLayer = app.activeDocument.artLayers.getByName("Layer 1");
I found out that the getByName layer method will grab the topmost layer if there are multiple layers named the same. Since you can have layers named the same (unlike path names) would the best practice for this to check for unique names before doing such a call?
Cheers