Select everything inside current layer
Hello.
Quite new to adobe scripting so excuse my ignorance.
I want to select everything inside the current active layer through a jsx script.
From previous threads I've seen that this is one way to do it:
doc.selection = null;
for(var i = 0; i<items.length; i++){
var currentItem = items[i];
alert(currentItem);
currentItem.selected = true;
}
This works for some of my assets, but not all. On the ones that the script does not work on it only gives the first child of the layer and stop there. The selection is applied to a part of the object but not everything. See attached picture for explanation ->
I am very confused, the items not getting selected are pathItems which should be part of the pageitems(?)
Any help is appriciated!
