AppleScript to unlock and unhide layers Illustrator CS5?

Hi,

I’m very new to scripting (and very excited about it) - just stumbled across it researching tools for an especially repetitive project. I was wondering if there was a way to use AppleScript to unlock and unhide all layers and sub-layers in Illustrator CS5. Is this possible? I couldn’t seem to get it to record or insert into an action.

Thanks in advance! :smiley:

Try this:

tell application "Adobe Illustrator"
	tell document 1
		set locked of every layer to false
		set visible of every layer to true
	end
end tell

Wow! thank you so much, worked perfectly - so clear and easy. :slight_smile: