Created
October 23, 2013 18:48
Revisions
-
code2k created this gist
Oct 23, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/bin/bash # # This script converts OpenMeta to OS X Mavericks tags. # # http://code2k.net # # Copyright © 2013 CODE2K:LABS. All Rights Reserved. mdfind "kMDItemOMUserTags == *" | while IFS= read -r file; do echo "$file" plistTags=$(mdls -plist - -name kMDItemOMUserTags "$file"|grep -v "kMDItemOMUserTags\|dict") xattr -w com.apple.metadata:_kMDItemUserTags "$plistTags" "$file" done