Created
April 19, 2017 22:10
-
-
Save tempusthales/43ce0ac78c6e53dd8d6c0f3c5194cb2e to your computer and use it in GitHub Desktop.
notification pop up with cocoaDialog
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/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