Hi,
name in layers palette is always a reference to a page item.
Assuming only one image / graphic in it you can access it by
var test = app.activeDocument.pageItems.itemByName("Bee").graphics[0];
Hi,
name in layers palette is always a reference to a page item.
Assuming only one image / graphic in it you can access it by
var test = app.activeDocument.pageItems.itemByName("Bee").graphics[0];