Re: illustrator: deleting invisible layers?
Re: illustrator: deleting invisible layers?
- Subject: Re: illustrator: deleting invisible layers?
- From: Shane Stanley <email@hidden>
- Date: Thu, 21 Nov 2002 13:13:45 +1100
On 20/11/02 6:35 AM +1000, Michael Stoll, email@hidden, wrote:
>
is there a way to delete invisible layers in illustrator?
>
>
delete (every layer of document 1 whose visible is true)
>
>
gives back an error.
You have to make them visible (and unlocked) first:
tell application "Adobe Illustrator 10"
tell document 1
set thelayers to (every layer whose visible is false)
repeat with i from (count of thelayers) to 1 by -1
set properties of item i of thelayers to {locked:false, visible:true}
delete item i of thelayers
end repeat
end tell
end tell
--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.