Created
January 7, 2016 15:32
-
-
Save adparadise/c97ded518b6db4030993 to your computer and use it in GitHub Desktop.
Display a growl notification on OSX from command line.
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 | |
title=$1 | |
shift | |
if [ "$title" == "" ]; then | |
title="Finished" | |
fi | |
body=$1 | |
shift | |
applescript="display notification \"$body\" with title \"$title\"" | |
osascript -e "$applescript" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful to tack at the end of long running processes, so that you know when to come back to it.
For example: