• 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
Delete layer in Photoshop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delete layer in Photoshop


  • Subject: Delete layer in Photoshop
  • From: "Fleisher, Ken" <email@hidden>
  • Date: Tue, 17 Apr 2007 10:00:22 -0400
  • Thread-topic: Delete layer in Photoshop

Title: Delete layer in Photoshop
Hi all. I need to delete a layer in Photoshop that has the name “Shape 1”. The other identifying attribute is it will be the only layer resulting from using the pen tool. I have been able to make this happen, but I’m looking for a more elegant way. I appreciate any suggetions. Thanks!

Here is what I have done so far (which does work correctly):

tell application "Adobe Photoshop CS2"
    tell current document
       
        set n to name of every layer
       set c to 1
       
       repeat with i in n
       
           if contents of i = "Shape 1" then
               delete layer c
           end if
           
           set c to c + 1
           
       end repeat

   
end tell
       
end tell


--
Ken Fleisher

Photographer
Imaging & Visual Services
National Gallery of Art
Washington, D.C.

Phone: (202) 712-7471
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Delete layer in Photoshop
      • From: Luca Pozzato <email@hidden>
  • Prev by Date: Re: Backup script
  • Next by Date: Re: applescript uninstaller delete itself & customizing applescript application bundle binary filename (CFBundleExecutable)
  • Previous by thread: Re: Backup script
  • Next by thread: Re: Delete layer in Photoshop
  • Index(es):
    • Date
    • Thread