From fc4b234d4665e2d9aaccf09e6c30e3bf8f3c0881 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Wed, 17 Dec 2014 12:24:38 -0600 Subject: [PATCH] Add an osx notify script. --- common/bin/notify | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 common/bin/notify diff --git a/common/bin/notify b/common/bin/notify new file mode 100755 index 0000000..c33f674 --- /dev/null +++ b/common/bin/notify @@ -0,0 +1,14 @@ +#!/bin/sh +message=${1:="no message"} +title='' +if [ "${2}" != "" ]; then + message="${2}" + title="${1}" +fi +notification="display notification \"${message}\"" +#if [ "${title}" != "" ]; then +# notification="${notification} with title \"${title}\"" +#fi +[ "${title}" != "" ] && notification="${notification} with title \"${title}\"" + +osascript -e "${notification}"