Skip to content

Instantly share code, notes, and snippets.

@tempusthales
Created April 19, 2017 22:10
Show Gist options
  • Save tempusthales/43ce0ac78c6e53dd8d6c0f3c5194cb2e to your computer and use it in GitHub Desktop.
Save tempusthales/43ce0ac78c6e53dd8d6c0f3c5194cb2e to your computer and use it in GitHub Desktop.
notification pop up with cocoaDialog
#!/bin/bash
CD="/Library/CocoaDialog/CocoaDialog.app/Contents/MacOS/CocoaDialog"
rv=`$CD msgbox --title "Updates Available" \
--text "Updates have been deployed to UCI Software Center" \
--informative-text "Click on the Univision Tulip on the top of the screen and choose Available Updates." \
--icon "download" \
--icon-file "/Library/CocoaDialog/tulip.png" \
--icon-size 128 \
--no-newline --float --button1 "OK"`
if [ "$rv" == "1" ]; then
echo "User said OK"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment