Skip to content

Instantly share code, notes, and snippets.

@samhunta
Created December 1, 2013 08:29
Show Gist options
  • Save samhunta/7729862 to your computer and use it in GitHub Desktop.
Save samhunta/7729862 to your computer and use it in GitHub Desktop.
set -e
# Run our new web 2.0 todo list application and raise millions of VC dollars.
touch ~/Desktop/"$*"
osascript -e "tell application \"Finder\" to set label index of alias POSIX file \"`cd -P -- "$(dirname -- "/Users/samuelhunter/Desktop/$*")" && printf '%s\n' "$(pwd -P)/$(basename -- "~/Desktop/$*")"`\" to 3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment