I want to write Flush Zone Script like this:
Please suggest me a way to do this.
Thanks in advance,
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.)