A collection of useful dialog boxes, alerts and panels for user interaction.
Signature | hs.dialog.alert(x, y, callbackFn, message, [informativeText], [buttonOne], [buttonTwo], [style]) -> string |
---|---|
Type | Function |
Description | Displays a simple non-blocking dialog box using `NSAlert` and a hidden `hs.webview` that's automatically destroyed when the alert is closed. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/init.lua |
Signature | hs.dialog.blockAlert(message, informativeText, [buttonOne], [buttonTwo], [style]) -> string |
---|---|
Type | Function |
Description | Displays a simple dialog box using `NSAlert` that will halt Lua code processing until the alert is closed. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/internal.m |
Signature | hs.dialog.chooseFileOrFolder([message], [defaultPath], [canChooseFiles], [canChooseDirectories], [allowsMultipleSelection], [allowedFileTypes], [resolvesAliases]) -> string |
---|---|
Type | Function |
Description | Displays a file and/or folder selection dialog box using NSOpenPanel. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/internal.m |
Signature | hs.dialog.textPrompt(message, informativeText, [defaultText], [buttonOne], [buttonTwo], [secureField]) -> string, string |
---|---|
Type | Function |
Description | Displays a simple text input dialog box. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/internal.m |
Signature | hs.dialog.webviewAlert(webview, callbackFn, message, [informativeText], [buttonOne], [buttonTwo], [style]) -> string |
---|---|
Type | Function |
Description | Displays a simple dialog box using `NSAlert` in a `hs.webview`. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/internal.m |