Created
April 9, 2013 00:24
-
-
Save jeremyruppel/5341855 to your computer and use it in GitHub Desktop.
See at a glance what files in your project drawer have (or have not!) been affected by this topic branch.
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
osxlabel(){ | |
osascript -e "tell app \"Finder\" to set label index of (POSIX file \"$PWD/$0\" as alias) to 4" | |
} | |
export -f osxlabel | |
git diff --name-only HEAD develop | xargs -n 1 bash -c osxlabel "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While testing this, applescript choked on a couple files saying it couldn't create aliases (code -1700). No idea wth that means and the filenames looked fine.