On Monday, December 24, 2001, at 04:07 PM, Paul Berkowitz wrote: Let me give a better example, because in many cases the "Other Choices" could just be added to the list as another choice - there's no particular virtue in making it a button instead. Actually your first example was excellent. However, I was not aware of this behavior and I think that saying "cancel button name" is deceiving. It is because "Cancel" button should, in my mind, mean that the user halted the progression of the script. May be better documentation would help. i think I remember that allowing the the "Cancel" button to go its way would not be appropriate if the system language was not English. There was a discussion about that a while ago, but I can not remember anything being decided. I tested here now and "Cancel" the default button is an "user canceled action" and so is error number -128 Right at this moment, I'm using 'choose from list' to replicate my Entourage email folder list, complete with indentations for subfolders similar to the Folder List in the main Entourage window, so that the user can find a folder to choose easily. (Similar to Outlook Express.) Adding extra lines in the list would mess up this scheme. But I want to give the user the option to make a New Folder instead of choosing an existing one. So I've made the cancel button into a New button, as in Entourage's own Move window, or as in the 'choose folder' osax. It calls another handler if pressed (if result is false). Of course, I'd really like to have a cancel button as well, so I'll probably have to make it into a 'New or Cancel' button. Crummy workaround. the two buttons restriction can be a killer. Soon I'll move over to AppleScript Studio so I can do this properly. But for now, 'cancel button name' with 'false' returned gives me this option I wouldn't otherwise have. Hope to meet you there too! Paul Berkowitz Deivy Petrescu http://www.dicas.com
Let me give a better example, because in many cases the "Other Choices" could just be added to the list as another choice - there's no particular virtue in making it a button instead.
Right at this moment, I'm using 'choose from list' to replicate my Entourage email folder list, complete with indentations for subfolders similar to the Folder List in the main Entourage window, so that the user can find a folder to choose easily. (Similar to Outlook Express.) Adding extra lines in the list would mess up this scheme. But I want to give the user the option to make a New Folder instead of choosing an existing one. So I've made the cancel button into a New button, as in Entourage's own Move window, or as in the 'choose folder' osax. It calls another handler if pressed (if result is false). Of course, I'd really like to have a cancel button as well, so I'll probably have to make it into a 'New or Cancel' button. Crummy workaround.
Soon I'll move over to AppleScript Studio so I can do this properly. But for now, 'cancel button name' with 'false' returned gives me this option I wouldn't otherwise have.
Paul Berkowitz