Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I often use spotlight to locate documents quickly. The one annoying thing is that I often email documents to share them and spotlight will find the version of the document indexed in my mailbox attachments folders. Is there any way to selectively exclude certain directories while searching? I'm thinking something along the lines of:

I'd love a "not:message" operator or something.

I don't want to tell spotlight not to index any of my email--it's useful and sometimes I search for "kind:message". The only way around it I see would be to drag all of the "Attachments" subfolders under all of my .imapmbox folders (I'm using gmail imap). Anyone know of an easier way to do it?


share|improve this question
up vote 0 down vote accepted

Try "searchterm NOT kind:message"

share|improve this answer
Yes, that definitely does what I asked for. Unfortunately it doesn't solve my original problem. Emails are excluded, but attachments still show up since they are just documents in the filesystem. Seems like excluding each of the "Attachments" folders is the only way around it. Anyone see other options? – user3946 Feb 25 '11 at 14:41

Your Answer


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