Re: Versions
Re: Versions
- Subject: Re: Versions
- From: "Fleisher, Ken" <email@hidden>
- Date: Thu, 24 Mar 2011 14:37:14 -0400
- Thread-topic: Versions
Title: Re: Versions
I suppose that could solve the problem, but I’m more concerned why I’m getting different results returned from various machines (which I have just verified, by the way, that they are running the same versions of Photoshop and applescript, etc.). Puzzling.
Thanks for the workaround though.
On 3/24/11 2:33 PM, "Steve Thompson" <email@hidden> wrote:
On 24 Mar 2011, at 15:36, Fleisher, Ken wrote:
I have a script that is running on multiple machines, but some machines return an error while others run correctly for certain commands. (Usually having to do with getting bounds of a layer in photoshop—some machines need the command “bounds of layerref as list” and others require me to omit the “as list”. The results are returned as follows:
{{0,0,100,100}}
{0,0,100,100}
Is this what you're after?
set theBounds to bounds of layerref
if class of theBounds is not list then set theBounds to bounds of layerref as list
--
Kenneth N. Fleisher
Color Scientist
Imaging & Visual Services
National Gallery of Art
6th Street & Constitution Avenue, N.W.
Washington, D.C. 20565
Phone: (202) 712-7471
email@hidden
Mailing Address:
2000B South Club Drive
Landover, MD 20785
Please consider the environment before printing this email
_______________________________________________
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
References: | |
| >Re: Versions (From: Steve Thompson <email@hidden>) |