Skip to content

Instantly share code, notes, and snippets.

@spiffin
Created March 10, 2015 18:45
Show Gist options
  • Save spiffin/84279a573f8bbe05a464 to your computer and use it in GitHub Desktop.
Save spiffin/84279a573f8bbe05a464 to your computer and use it in GitHub Desktop.
AppleScript to clear Finder tags on selected item(s)
--Requires tag app available via homebrew: brew install tag
tell application "Finder"
set fileNames to {}
set theItems to selection
repeat with itemRef in theItems
set end of fileNames to POSIX path of (itemRef as text) & space
end repeat
end tell
do shell script "/usr/local/bin/tag --remove \\* " & fileNames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment