News for hackers. Stuff that matters.
Re:My Favorite One Liners by punnerud on Monday May 03, 2021 @11:19AM (#27026203)
I often like alert better (osascript -e 'display alert "'"$1"'"'"), this way the message don't go away before you click ok.

Can also combine with a vocal message: sleep 2; osascript -e 'say "Hello World!"'; osascript -e 'display alert "hello world"'

The last one copied from https://code-maven.com/display-notification-from-the-mac-com...

Re:My Favorite One Liners by nicbou on Monday May 03, 2021 @11:58AM (#27026721)
I stopped using "say" because it made me jump in my chair too many times.