Skip to content

Instantly share code, notes, and snippets.

@julesjans
Created September 5, 2017 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julesjans/9ecad1ac89db368d88ac4c20ce3851d3 to your computer and use it in GitHub Desktop.
Save julesjans/9ecad1ac89db368d88ac4c20ce3851d3 to your computer and use it in GitHub Desktop.
Shell script to change the tag/colour of item in Finder with AppleScript
#!/bin/bash
osascript -e "tell application \"Finder\" to set label index of alias POSIX file \"$1\" to 2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment