-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
This would allow users to respond "yes" or "no" to a dialog with a new method dialog.confirm. My initial thoughts on implementing this in a cross platform manner are:
- Use
MsgBoxstyle4andWScript.Quit responseto return an exit code indicating the button pressed on Windows - Use Zenity's
--questionoption for Linux - Use the
buttonsparameter ofdisplay dialogon Mac and extract which button was clicked from theResultrecord.
https://msdn.microsoft.com/en-us/library/139z2azd(v=vs.90).aspx
https://help.gnome.org/users/zenity/stable/question.html.en
https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW12
Metadata
Metadata
Assignees
Labels
No labels