Skip to content

Instantly share code, notes, and snippets.

@adparadise
Created January 7, 2016 15:32
Show Gist options
  • Save adparadise/c97ded518b6db4030993 to your computer and use it in GitHub Desktop.
Save adparadise/c97ded518b6db4030993 to your computer and use it in GitHub Desktop.
Display a growl notification on OSX from command line.
#!/bin/bash
title=$1
shift
if [ "$title" == "" ]; then
title="Finished"
fi
body=$1
shift
applescript="display notification \"$body\" with title \"$title\""
osascript -e "$applescript"
@adparadise
Copy link
Author

Useful to tack at the end of long running processes, so that you know when to come back to it.

For example:

slow_process.sh; growl.sh "slow_process finished"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment