Hi,
I am writing a javascript that wil find all dialogue in a text frame, indent it and bold it. I have managed to figure out with GREP how to find and bold the dialogue, but i can't figure out a way to dynamically calculate what the longest needed tab stop to align the left edge of the dialogue. Picture attached to illustrate what i am looking for. Any help would be appreciated.