Notification

Show macOS system notifications with title, body, and optional sound. Use for alerts, reminders, or status updates.

mikeyobrien 584375b 1.2 KB Updated

File contents

System Notifications

Basic notification

osascript -e 'display notification "Message body" with title "Title"'

With subtitle

osascript -e 'display notification "Body" with title "Title" subtitle "Subtitle"'

With sound

osascript -e 'display notification "Body" with title "Title" sound name "default"'

Common sound names

  • default — system default
  • Basso, Blow, Bottle, Frog, Funk, Glass, Hero, Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink

Richer notifications (optional)

For persistent or actionable notifications, install terminal-notifier:

brew install terminal-notifier
terminal-notifier -title "Title" -message "Body"
terminal-notifier -title "Title" -message "Body" -sound default
terminal-notifier -title "Title" -message "Body" -open "https://example.com"
terminal-notifier -title "Title" -message "Body" -group "mynotif"  # updatable by group
terminal-notifier -remove "mynotif"  # remove by group

mikeyobrien/rho/tree/main/platforms/macos/skills/notification commit 584375b4cc

Frequently asked questions

npx skillmds@latest add mikeyobrien/notification-2