How to get exact position of a ruler guide in Photoshop?

In the menu choose "View > New Guide...", this will ask you for Horizontal or Vertical Orientation of the line you will make. Position being the location of the line on the paper (4th geometrical quadrant)

New Guide


I only have the CS4 version. In it the way I would try to determine this would be to use the cursor X & Y position displayed in the INFO tab of the Info window (F8 key). This displays the current location of the mouse cursor measured relative to the active document's top-left corner. With that visible all you need to do is move the mouse cursor so it's on top of the ruler guide and look at the X or Y value displayed. Zooming in on the image can make positioning the cursor precisely easier, so can enabling the Precise option in Cursor Preferences (not shown in screenshot below).

Alternatively, you may be able to read the position off the regular horizontal or vertical ruler that can be made to display (Ctrl-R or Cmd-R) on the edges of an image's window.

Below you can see there's a ruler guide (the light blue vertical line) with the mouse cursor directly on top of it. As you can also see, "950" is what is being displayed for the X coordinate in the INFO pane of the floating window over on the right -- which is exactly the position specified when the guide line was created for use in this example.

screenshot of Photoshop application window


Make sure the Info panel is visible, then start moving the old guide (Ctrl or Cmd and drag).

You should see something like this:

Mathematica graphics

  • The ΔX: and ΔY: fields (upper right) will show the offset from the original position.

  • The X: and Y: fields (lower left) will show the absolute position.

Drag back until the offset is zero, which means the guide is in its original position, then read the absolute position off of the corresponding X: or Y: field. If you wish to read the position in pixels you will need to set that measurement section of the Info panel to pixels, which is done by clicking the + symbol at the left side. Once you have read the position you can press Esc to cancel the move, which will make sure that you don't accidentally move the guide by a pixel or two as you release.

By the way you may find use in the GuideGuide plugin.


This script will get you a list of all guides in the active document:

function getGuides(doc) {
    var i, l;
    var g, d;
    var guides = [[],[]];

    for (i=0,l=doc.guides.length; i<l; i++) {
        g = doc.guides[i];
        d = (g.direction === Direction.HORIZONTAL) ? 0 : 1;
        guides[d].push(parseFloat(g.coordinate)+0);
    }
    return guides;
}

function listGuides(doc) {
    var report = "Guides in " + doc.name;

    var guides = getGuides(doc);
    var directions = ["Horizontal", "Vertical"];
    var units = (doc.guides.length) ?  doc.guides[0].coordinate.toString().split(" ")[1] : "px";

    var i, j, l;
    var d;

    for (d=0; d<2; d++) {
        report += "\n\n" + directions[d] + ":\n";
        if (guides[d].length) {
            guides[d].sort(function(a,b){return a-b;});
            for (i=0,l=guides[d].length; i<l; i++) {
                report += "\n" + (i+1) + ") " + guides[d][i] + " " + units;
            }
        } else {
            report += "\nNone";
        }
    }
    return report;
}


//Dispatch
if (BridgeTalk.appName === "photoshop") {
    alert(listGuides(app.activeDocument));
}