Re: Photoshop measure tool
Re: Photoshop measure tool
- Subject: Re: Photoshop measure tool
- From: Stan Cleveland <email@hidden>
- Date: Tue, 14 Nov 2006 13:28:05 -0800
- Thread-topic: Photoshop measure tool
On 11/14/06 9:12 AM, Fleisher, Ken wrote:
> Is there a way in AppleScript to extract the information from Photoshop's
> measure tool? I'm interested in getting the current distance value. I've
> searched the reference guide and the list archives and didn't see anything.
> I suspect it's not possible, but I'm hoping I've just missed it.
Unless I'm missing something, there's no access to Photoshop's measure tool
using either AppleScript or JavaScript. You can't control it, read it, or
even select it as the current tool (as of CS2). I doubt that GUI scripting
would give any access, but even if it did, it would be an extremely
complicated undertaking.
You could simulate your own measure tool, doing geometric calculations for
distance between two X-Y coordinates. Two options I can think of for
defining the coordinates are the corners of a rectangular selection (which
you can get from its bounds) or the path points of a path. (There may be
others, but those two would be relatively easy to do.)
Good luck!
Stan C.
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden