Boolean Searches in Spotlight (and Mail)

spotlightA Mac user in Holland has discovered that limited Boolean searching is “hidden” in Spotlight. As you might expect, the syntax is as follows:

“lenin stalin” – as we all know – finds things containing lenin and stalin
“lenin|stalin” will find things mentioning lenin or stalin
“lenin|stalin(-trotsky)” will find things containing lenin or stalin but not mentioning trotsky.

Neat!

And, of course, it works in Apple Mail as well, where the search function uses the Spotlight technology.

Or you can use this syntax:

A & B yields A AND B
A | B yields A OR B
A ! B yields A NOT B.

See more at his blog, ipse dixit, and in the tip and comments at MacOSXHints.

Similar Posts:

No tags for this post.

3 Responses to “Boolean Searches in Spotlight (and Mail)”

  1. Constant Dupuis says:

    Saddly this doesn’t work for filename :-(

  2. Hawk Wings » Blog Archive » A modest Leopard Mail wish-list says:

    [...] That’s much more simple than the Boolean search “hack” for Mail. [...]

  3. links for 2006-11-15 « Amy G. Dala says:

    [...] Hawk Wings – Boolean Searches in Spotlight (and Mail) (tags: osx reference search tips) [...]

Leave a Reply