Skip to main content
Participant
October 13, 2017
Answered

Select all items/objects on specified layer

  • October 13, 2017
  • 1 reply
  • 50647 views

Hi,

I have really tried but can't really understand the illustrator scripting guide.

What Im trying to achieve is to iterate through a layer specified by name and select all objects in it.

Does anyone have a good solution for this?

Thanks!

This topic has been closed for replies.
Correct answer Silly-V

You can use this line:

app.activeDocument.layers["MyLayer"].hasSelectedArtwork = true;

Just make sure there is a layer named "MyLayer" in your document, which contains art!

1 reply

Silly-V
Silly-VCorrect answer
Legend
October 13, 2017

You can use this line:

app.activeDocument.layers["MyLayer"].hasSelectedArtwork = true;

Just make sure there is a layer named "MyLayer" in your document, which contains art!