How to get the Column number
Hi to all,
I'm sorry to ask this question as i found 2 different answers, tried them without any result. So before becoming mad i prefer to ask !
So given mySelection = app.selection[0], how is it possible to get the column in which is the selection?
I tried app.selection[0].parentTextFrames[0].characters.itemByRange(0, x)
with x being app.selection[0].index.
but then i'm stuck as if i add ".textColumns" i get an error
I explored the second way using app.selection[0].textColumns.item(1).insertionPoints.item(1), but again i'm stuck.
As a beginner i don't understand why there is no simple built-in function to call in order to get such a basic result ![]()
Any help would be MUCH appreciated
Thanks
Ed
