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
- Host: GitHub
- URL: https://github.com/berquerant/scptdisplay
- Owner: berquerant
- Created: 2025-02-03T11:52:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-01T12:18:04.000Z (5 months ago)
- Last Synced: 2025-10-01T14:22:18.115Z (5 months ago)
- Topics: macos, notification, osascript, rust
- Language: Rust
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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