Delete layer in Photoshop
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