var doc = app.activeDocument; //references current document
doc.activeLayer = doc.layers[0]; //selects the top layer
var doc = app.activeDocument; //references current document
doc.activeLayer = doc.layers[1]; //selects the top layer
I'd like to choose two layers.
I would like to select two layers and link them.