Button order reversed

Any dialog I attempt to create using Dialog Toolkit 1.1.0 has a problem with the buttons: the order of the values returned of the buttons is the reverse of the order of the buttons themselves.

For example, the provided example script ‘Simple sample.scpt’ has buttons, in order, ‘OK’, ‘Five’, ‘Four’, ‘Three’, ‘Two’, ‘One’, and ‘Cancel’. Pressing ‘OK’ returns the value ‘Cancel’, ‘Five’ returns ‘One’, ‘Four’ returns ‘Two’ and so on.

What’s causing this, and how do I stop it?

It’s a bug. I’ll fix it shortly; in the meantime, the window versions are not affected.

1 Like

OK, version 1.1.1 is now available here:

https://www.macosxautomation.com/applescript/apps/Script_Libs.html

1 Like

Perfect! Thanks for such a fast response!