Created
November 11, 2014 22:44
-
-
Save anonymous/446c7d69d631234ced37 to your computer and use it in GitHub Desktop.
"Move To Dropbox" Notifier. Intended to be used as part of a Service for OS X
This file contains 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
FILES="$@" | |
FILES=`echo "${FILES}" | sed "s#${HOME}/Dropbox/##g"` | |
COUNT="$#" | |
if [ "${COUNT}" = "1" ] | |
then | |
/usr/local/bin/growlnotify \ | |
--appIcon "Dropbox" \ | |
--identifier "MoveToDropbox" \ | |
--message "${FILES}" \ | |
--title "One File Moved to Dropbox" | |
else | |
/usr/local/bin/growlnotify \ | |
--appIcon "Dropbox" \ | |
--identifier "MoveToDropbox" \ | |
--message "${FILES}" \ | |
--title "${COUNT} Files Moved to Dropbox" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment