Article View: adobe.photoshop.scripting
Article #50Re: moving sequential layers to to corresponding points
From: Mark_Larsen
Date: Tue, 31 Mar 2009 18:50
Date: Tue, 31 Mar 2009 18:50
14 lines
1510 bytes
1510 bytes
Pearl Teeth, Im at home at the moment on a Leopard Mac so Im unable to test. But I can tell you that you "file/folder expected" error is due to the way in which you are referencing your target objects. You are talking to layer of layer of document of document. This is off the top of my head but here goesοΏ½ tell application "Adobe Photoshop CS2" -- Target Photoshop Application Object activate -- Tell application object what to do tell document "scripttry.psd" -- Next Target Document Object resize canvas width (10 as pixels) anchor position middle left -- Tell document object what to do repeat with i from 2 to 10 -- Start loop tell layer i -- Next Target Layer Object translate delta x (i - 1) as pixels -- Tell layer object what to do end tell -- Target Layer Object end repeat -- End loop end tell -- Target Document Object end tell -- Target Photoshop Application Object
Technical Details
Message-ID:
<59b8766c.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b8766c.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,cf1d07fb07aa28b7 X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII From: Mark_Larsen@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: moving sequential layers to to corresponding points Message-ID: <59b8766c.0@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 11:50:59 -0700 References: <59b8766c.-1@webcrossing.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit