An open API service indexing awesome lists of open source software.

https://github.com/berquerant/scptdisplay

Display a notification, dialog or alert via AppleScript
https://github.com/berquerant/scptdisplay

macos notification osascript rust

Last synced: 4 months ago
JSON representation

Display a notification, dialog or alert via AppleScript

Awesome Lists containing this project

README

          

# scptdisplay

Display a notification on macOS by

- [display notification](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW224)
- [display alert](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW11)
- [display dialog](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW12)

# Usage

``` shell
❯ scptdisplay -h
Display a notification, dialog or alert via AppleScript

Usage: scptdisplay [OPTIONS]

Commands:
notification Posts a notification using the Notification Center, containing a title, subtitle, and explanation, and optionally playing a sound. [aliases: n, notify]
alert Displays a standardized alert containing a message, explanation, and from one to three buttons. [aliases: a]
dialog Displays a dialog containing a message, one to three buttons, and optionally an icon and a field in which the user can enter text. [aliases: d]
help Print this message or the help of the given subcommand(s)

Options:
--osascript osascript command [default: osascript]
-h, --help Print help (see more with '--help')
-V, --version Print version
```

# Requirements

- osascript