Photoshop CS4 Ruler Tool


My name is Kevin Dunphy, and I am a research assistant at Dalhousie University in Halifax, Nova Scotia.

Photoshop CS4’s Ruler tool is very useful in my image analysis, as it provides me with distances (in pixels) and angles (in degrees) between two points.

I find I am constantly writing down the values it gives me because CS4 does not allow me to copy the ruler tool’s information.

Ideally, I am trying to create a script that allows me to use the Ruler Tool to select two points, then use one of Mac’s function keys (F13, F14, or F15) to create a new text layer with the length and angle of the current Ruler path as it’s content.

I am having some serious difficulty figuring out how to extract the tool’s data, and hence why I am posting here.

I’m looking for something very basic, something along the lines of:

tell application "Adobe Photoshop CS4" set docRef to current document set RulerInfo to ????????? set NewLayer to make new art layer in docRef set kind of NewLayer to text layer set contents of text object of NewLayer to RulerInfo end tell