How can I delete everything in a folder that doesn't have a tag? Manually sifting through it is fairly unreasonable.
1 Answer
mdfind 'kMDItemUserTags!=*' -onlyin . -0|xargs -0 rm
Or using tag:
find . -type f|while read f;do [[ $(tag -m \* "$f") ]]||rm "$f";done