Coordinates

How can I have the coordinates (X,Y) of the insertion point in a text box ?

This calculation could be not accurate, and it depends on the target application (the one containing the text) and its scripting features (grab insertion point, count of lines, position of window, etc.), appart from the used font, etc. Not an easy task.

The only thing I can think about is using Smile (OS X version) and its “measuretext” command (from the Graphic Kernerl suite): you grab info from the real scenario (various positions, font into, etc.), then fake it in a Smile “graphic window”, then use “measuretext” and blah.

Anyway, why would you need such a thing?