Tip 182Be Ultra-Accurate with Spotlight

Spotlight is precise in providing files that match your search query, but you can also force it to be even more specific, returning only certain types of files in the results, for example, or only those files with certain characteristics.

Searching for Types of Files

To force Spotlight to search only for a particular type of file that matches your search term, such as images, type kind: and then the type of file you’re looking for. For example, to search only for audio files matching the word bieber, I’d type the following:

 
kind:music bieber

To search for documents matching the word report, type the following:

 
kind:documents report

You can see a full list of words that can be used in the following table. ...

Get Mac Kung Fu, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.