• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: illustrator: deleting invisible layers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >illustrator: deleting invisible layers? (From: Michael Stoll <email@hidden>)

  • Prev by Date: Re: Dialogs (Open file (indesign) without dialog missing fonts & missing)
  • Next by Date: Re: Number of days left in the month
  • Previous by thread: illustrator: deleting invisible layers?
  • Next by thread: Re: Trailing LFs in shell scripts
  • Index(es):
    • Date
    • Thread