Boolean Searches in Spotlight (and Mail)
A 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.
No tags for this post.Related posts

April 26th, 2006 at 11:22 pm
Saddly this doesn’t work for filename :-(
November 14th, 2006 at 8:53 pm
[...] That’s much more simple than the Boolean search “hack” for Mail. [...]
November 16th, 2006 at 12:21 am
[...] Hawk Wings - Boolean Searches in Spotlight (and Mail) (tags: osx reference search tips) [...]