#
hs.dialog
A collection of useful dialog boxes, alerts and panels for user interaction.
#
Submodules
#
API Overview
Functions - API calls offered directly by the extension
alert blockAlert chooseFileOrFolder textPrompt webviewAlert
#
API Documentation
#
Functions
#
alert
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 |
|
Examples | None |
Source | extensions/dialog/dialog.lua line 20 |
#
blockAlert
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 |
|
Examples | None |
Source | extensions/dialog/libdialog.m line 564 |
#
chooseFileOrFolder
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 |
|
Examples | None |
Source | extensions/dialog/libdialog.m line 327 |
#
textPrompt
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 |
|
Examples | None |
Source | extensions/dialog/libdialog.m line 665 |
#
webviewAlert
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 |
|
Examples | None |
Source | extensions/dialog/libdialog.m line 440 |