Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Photoshop measure tool (From: "Fleisher, Ken" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.