Button order reversed

mojave
(Rhiannon Miller) #1

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?

0 Likes

(Shane Stanley) #2

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

1 Like

(Shane Stanley) #3

OK, version 1.1.1 is now available here:

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

1 Like

(Rhiannon Miller) #4

Perfect! Thanks for such a fast response!

0 Likes