• 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: How to get all layer (even in layer sets) in Photoshop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get all layer (even in layer sets) in Photoshop


  • Subject: Re: How to get all layer (even in layer sets) in Photoshop
  • From: Paul Skinner <email@hidden>
  • Date: Wed, 16 Dec 2009 10:29:04 -0500

Leo,

	An alternate construction might be more understandable.

set {artLayers, layerSets, i} to {{}, {}, 0}

tell application "Adobe Photoshop CS3"
	tell document 1
		set artLayers to artLayers & every art layer
		set layerSets to layerSets & every layer set
		repeat
			set i to i + 1
			try
				tell item i of layerSets
					set artLayers to artLayers & every art layer
					set layerSets to layerSets & every layer set
				end tell
			on error
				exit repeat
			end try
		end repeat
	end tell
end tell


On Dec 14, 2009, at 3:41 PM, Leo Law wrote:

Cool, thanks a lot.

I just have a question, say this script runs into a layer set half way through the layers and then goes off on that branch... how do you come back up, so to speak, and get the remaining layers?

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


This email sent to 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: How to get all layer (even in layer sets) in Photoshop
      • From: Paul Skinner <email@hidden>
References: 
 >Re: How to get all layer (even in layer sets) in Photoshop (From: Leo Law <email@hidden>)

  • Prev by Date: Re: Plug-ins
  • Next by Date: Re: How to get all layer (even in layer sets) in Photoshop
  • Previous by thread: Re: How to get all layer (even in layer sets) in Photoshop
  • Next by thread: Re: How to get all layer (even in layer sets) in Photoshop
  • Index(es):
    • Date
    • Thread