-
-
Save scottstanfield/683fcf4a16ed39ff4e0711be05e5d77a to your computer and use it in GitHub Desktop.
Revisions
-
scottstanfield revised this gist
May 2, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 @@ -6,7 +6,7 @@ # # Copyright © 2013 CODE2K:LABS. All Rights Reserved. mdfind "kMDItemOMUserTags == *" -onlyin "." | 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" -
code2k created this gist
Oct 23, 2013 .There are no files selected for viewing
This file contains hidden or 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