spiffin
3/10/2015 - 6:45 PM

AppleScript to clear Finder tags on selected item(s)

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