ExtendScript: How to get the distance to the side of the text frame
Hi,
I have an index. The page numbers are right-aligned with a tab to the right side of the text frame.
When the text extends too far to the page number area, I want to insert a line break.
I can get the TextRange or the TextLoc of the single characters in the text.
However, I do not know how to get the distance to the text frame border.
I did not find any LocX property of the TextRange or the TextLoc.
How can I tackle this? Which object and which property do I have to check?
Thank you very much for your help!
Best regards, Winfried

