Copy link to clipboard
Copied
Hi scripts
I have A-Tx master page in my document and also 3 layers in the master page. Now I want to copy all the items placed in layer 1 how can i do this using javascript?
something i worked
myl1 = app.activeDocument.layers.item("lay1");
app.select(myl1.allPageItems);
but i am not getting any result?
thanks in advance
regards
a r u l
Copy link to clipboard
Copied
Arul,
You can't select all items of one layer if your layer items appear more than one page.
Try to selecte one by one item for e.g.
myl1uitems = app.activeDocument.layers.item(0).allPageItems;
for (a=0; a<myl1uitems.length; a++)
{
app.select(myl1uitems);
alert ("You have selected " + myl1uitems.constructor.name)
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now