Skip to main content

macos_answer

Function macos_answer 

Source
pub fn macos_answer(success: bool, stdout: &str, stderr: &str) -> Option<bool>
Expand description

What osascript said. The alert ([MACOS_ALERT]) exits 0 and prints button returned: and the title of the button clicked: Quit, or Keep running. The “User canceled” error, -128, is what a display dialog with a cancel button gives for Keep running; it is read as Keep running too. Any other failure is an alert that was never answered: None, and the quit goes ahead.