Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've heard it is possible to add tags to a file's meta data in OS X, and have Spotlight search through such tags.

  1. In a nutshell, how would one access this feature in Finder – not Spotlight (Command+Space) – but the adding of tags themselves?

  2. Where are these tags stored? Do they go in .DS_Store (I tend to delete those!) or elsewhere in the filesystem?

  3. Does this tagging mechanism work on removable drives? What are the requirements?

  4. Does this tagging mechanism work over a network share? I have some Windows SMB network shares at home that I frequently store files on. Would it work on those or is another configuration required?

  5. Aside from Spotlight, are there any command-line tools for searching through or accessing the tag data for files?

Thank you!

share|improve this question

1 Answer 1

up vote 8 down vote accepted

In a nutshell, how would one access this feature in Finder – not Spotlight (Command+Space) – but the adding of tags themselves?

From Finder, highlight a file and hit Cmd-I (or right click and select Get Info) to bring up the File Info Dialog for the file. In this dialog the Spotlight Comments field is where you add tag data. Just add text to this field to "tag" the file.

Here's a good article on how to become a meta-data wizard in OS X: http://gigaom.com/apple/using-metadata-effectively-in-os-x/

Tagging your documents

If was tagging that screen capture I might use the following in the comments box:

customer-name presentation product-name

So that I could find that screen shot by the customer, or by the fact that it's being used in a presentation, or by the name of the product I'm showing them.

Where are these tags stored? Do they go in .DS_Store (I tend to delete those!) or elsewhere in the filesystem?

Yes, they're stored in the .DS_Store files you see in each folder. Spotlight would also have a tag <-> file mapping section in its database but that's only accessible to Spotlight.

Does this tagging mechanism work on removable drives? What are the requirements?

Generally: yes. You can add tags to files and folders on removable drives and remote shares. Unless you've turned off .DS_Store creation on remote shares, OS X will just add these files and keep the meta-data there for you.

Does this tagging mechanism work over a network share? I have some Windows SMB network shares at home that I frequently store files on. Would it work on those or is another configuration required?

Yes, see above. If you didn't want OS X to do this run:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

And then restart Finder.

Aside from Spotlight, are there any command-line tools for searching through or accessing the tag data for files?

Lots!

Here's a list of 7 file-tagging applications for OS X: http://mac.appstorm.net/roundups/utilities-roundups/7-file-tagging-applications-for-os-x/

I personally love and use LaunchBar which is like Spotlight on steroids.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.