Script request: adjust tracking to maximize line width
I often face a situation where I've adjusted the tracking of entire paragraphs to eliminate widows, reduce the number of lines, etc. I typically find myself fine-tuning the tracking of individual lines, and I wonder if anyone has whipped up a script to max-min the line width to fit best.
For example, say the whole paragraph has -30 tracking applied. I'd love to be able to select a single line and run a script which finds the ideal value between -30 and 0 where the line doesn't overflow.
Doing this manually each time I need to adjust a line is tedious, and this seems like a good application of a binary or dichotomic algorithm. I'm not familiar enough with JSX or the Indesign DOM to write it though. A little help?
