Answered
the Y value of the anchor point and the X value of the left column line
You can get the horizontal offset of the line the image is anchored to, and the line’s baseline:
var d = app.documents[0];
//a selected anchored frame
var s = d.selection[0]
var c = s.parent
$.writeln(c)//returns the anchored object’s character
var l = c.lines[0]
$.writeln(l)//returns the line containing the character
var hOff = l.horizontalOffset
$.writeln(hOff)//reurns the line’s horizontal offset—78.99 in the sample file
var base = l.baseline
$.writeln(base)//returns the baseline position of the line — 82.7053540039063 in the sample file
Sign up
Already have an account? Login
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inSign in to Adobe Community
No account yet? Create an account
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

