Find all Finder tags

Can anyone tell me how to retrieve all Finder tags, including user ones that may have been synced from iCloud?

Replies

Can anyone tell me how to retrieve all Finder tags … ?

There is no supported API for that (r. 20046212)-:

Oh, and be careful what you read on the wider Internet about this. Various folks have recommended various unsupported techniques for doing this, and at least some of them have stopped working.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

This limitation never made any sense especially given the fact that NSURL has NSURLTagNamesKey which may be set and get.

Way back in the day I was looking to do this. I naturally thought NSWorkspace API related to "file labels" (which I think tags replaced) would maybe just map to tag names but it didn't work. NSWorkspaceDidChangeFileLabelsNotification never got posted so I gave up.