Documentation
¶
Overview ¶
Package dialog implements macOS human-in-the-loop dialogs via osascript.
Index ¶
Constants ¶
View Source
const (
MaxPresetOptions = maxAlertButtons - 1 // preset --option count (Customize is always added)
)
Variables ¶
View Source
var ErrDismissed = errors.New("dialog dismissed")
ErrDismissed indicates the user cancelled or closed the dialog.
Functions ¶
func ParseOsascriptOutput ¶
ParseOsascriptOutput extracts button and text from osascript stdout. display dialog often returns both fields on one line: "button returned:OK, text returned:hello"
Types ¶
Click to show internal directories.
Click to hide internal directories.