I've avoided using ScriptUI because of its lack of MeasurementEditboxes. But the time has come that I really want to use ScriptUI and I want to see if there is a workaround to some of the limitations of edittext boxes in ScriptUI. Before I list the issues, let me say that I'd love if we can all come up with a solution here that everyone can use. I think as a scripting comunity there will be lots of other people that can benefit from this solution. But at the same time I am willing to pay for a fix. Whether it's something a fellow scriptor has already developed or can develop, I need to solve this: for free or payment.
Onto the issues:
- Up/down arrows must increment values. Shift-arrows should increment larger values. This must work with inches, mm or picas. So 1p0 would be come 1p1, 1p11 would become 2p0. 1 in would become 1.125 in etc.
- If you type in a different form of measurements InDesign must translate into the current measurements. If the editbox is for inches, typing picas or mm should auto convert to inches, just like the native InDesign UI does.
- Math must work in editboxes. If you enter "1/8 in" InDesign should figure out "0.125 in". You should be able to enter "2.25 in + 0.125 in" and have InDesign do the math. CS6 now does complex math such as "1 in + 1/8 in" so that would be ideal. This math should also work with different measurement types such as "1 in + 1p".
I've seen solutions for issues 1 and 2 in this sidenotes script:
... but it doesn't like p6, only 0p6. People shouldn't have to type the 0. (But thanks Kahrel for this great example as well as you Script UI For Dummies. It's been helpful.)
I've not found any existing solutions to issues 3.
Those are the issues as I see them. Can we fix them?
Let me end by begging Adobe to please add MeasurementEditboxes into ScriptUI. Now that InDesign CS6 can do complex math in their editboxes, we need these native controls more than ever. I thought when ScriptUI was first added it would continue to advance and get controls such as this. Years later I guess I was wrong. Maybe it's just not a priority because it doesn't seem to sell upgrades? Please help us to create great scripting interfaces that feel native. They already exist in the other scripting dialogs, why not in ScriptUI? While you're at it, why not through in ones with up/down button tickers like InDesign has!
OK, rant over and let's get back to making this work.
Thanks in advance,