Question
replace specific name in layer in adobe illustrator
Hi,
I have really tried but can't really understand the illustrator script guide.
I want to rename my selected layer with the name "copyfx" but what changes are all layers
what's wrong with this script?
//
var document = app.activeDocument;
var layers= document.layers;
for(var i =0; i < layers.length;i++) {
layers[i].name ="copyfx";
}

is there a way to solve it? thanks
