Created
December 16, 2025 20:16
-
-
Save michbarsinai/fe01de60fb91228eb531b0343afd0a96 to your computer and use it in GitHub Desktop.
Mac OS: Send a, OS notification from the terminal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| # usage: osx-notify message [sub_title] | |
| SUBTITLE="Script Notification" | |
| if [ -n "$2" ]; then SUBTITLE=$2; fi | |
| MESSAGE=$1 | |
| CODE="display notification \"osx-notify\" with title \"${MESSAGE}\" subtitle \"${SUBTITLE}\"" | |
| osascript -e $CODE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment