У меня есть слой "design" с несколькими группами с именем "orderno".
Мне нужен скрипт, который бы выбирал только эти.
Я попробовал этот код, но мне не удалось выбрать более 1 группы "orderno"
var docRef = app.activeDocument;
var layers = docRef.layers;
var myLayer = layers["design"]; //this defines the layer that you want to get the selection from
var myGroup = myLayer.groupItems["orderno"];
docRef.selection = null; //ensure there is nothing in the document selected already. this way you only get the selection you want.
for(var a=0;a<myGroup.pageItems.length;a++){ //here we are looping through each pageItem of myLayer.
var currentItem = myGroup.pageItems[a];
currentItem.selected = true;
}
Я думаю, что что-то упущено в строке 'currentItem' ...
пожалуйста, помогите!