Article View: adobe.photoshop.scripting
Article #1789Re: [AS] New to scripting: Looking for method to list "path" of layer
From: Bernhard_VonZastrow
Date: Thu, 29 Jul 2004 01:29
Date: Thu, 29 Jul 2004 01:29
33 lines
1586 bytes
1586 bytes
Ok, for millions who are following this thread.... Here is a script that actually works, but I am annoyed that I cannot call the subroutine that I described in the previous post. tell application "Adobe Photoshop CS" activate if ((count documents) < 1) then display dialog "You must have at least one document open" return end if set DocumentRef to current document set documentName to name of current document set layerRef to current layer of current document set PathName to name of current layer of current document set ParentLayer to container of current layer of current document set ParentName to name of ParentLayer repeat while ParentName is not equal to documentName set PathName to ParentName & "." & PathName set ParentLayer to container of ParentLayer set ParentName to name of ParentLayer end repeat display dialog PathName as string end tell
Technical Details
Message-ID:
<3bb53eb0.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb53eb0.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,fd0e78320f83793c X-Google-Attributes: gidf5839,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bernhard_VonZastrow@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.photoshop.scripting Subject: Re: [AS] New to scripting: Looking for method to list "path" of layer Message-ID: <3bb53eb0.2@webx.la2eafNXanI> Date: Wed, 28 Jul 2004 18:29:54 -0700 References: <3bb53eb0.-1@webx.la2eafNXanI> Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit