I want to write Flush Zone Script like this:
Please suggest me a way to do this.
Thanks in advance,
How about set tab at the end of each justified paragraph, read its position and calculate the offset form the right side of the textframe?
Why? Simply use the last character's insertion point position:
and compare it to the current text frame width. (Don't forget to take into account that the paragraph could have a right indent or last line right indent.)
Thank you very much,Jongware, and thanks for that link too.