Search & Find

Mac users who are searching for specific file type and file format matches on their computer can make the job dramatically easier by issuing proper search operators to the Find functions in OS X. File type search operators can be used directly in Spotlight and also in the Finder based search function, and they can be either very specific to a particular file format (for example, a JPEG), or more general to a file type (for example, a movie).

As a quick reminder, you can open Spotlight search by hitting the Command+Spacebar key combo from anywhere in OS X, and you can open a new Finder search with Command+F from anywhere in the Mac file system, desktop, or Finder.

Searching for a General File Type in OS X

If you know you want to find and match general file types, you can use generalized file operators in the search functions of OS X like so:

kind:(file type)

File type search operators can be things like ‘image’, ‘movie’, ‘music’, ’email’, ‘application’, ‘text’, ‘archive’, etc.

For example, if you want to find all images in a folder, or search for a file that you know is an image, you could use the following operator:

kind:image

If used in Spotlight (command+spacebar), the matches will be listed by most recent usage, but you can click on the “Show all in Finder” option to see all matches for the search type.

Search Spotlight for a file kind match in Mac OS X

If the kind:type operator is used in the Finder windows, it will default to searching the entire computer for matches of that type (in the prior example, all images, or in the below example, all music).

Searching for matches of general file types in Mac OS X

Searching for Specific File Format Matches in Mac OS X

Assuming you know a specific file format, you can use file format operators when searching on the Mac as well, like so:

kind:(file format)

File format search operators are quite literal, meaning you can specify something like ‘jpeg’, ‘gif’, ‘aiff’, ‘pdf’, ‘rtf’, ‘psd’, ‘mp3′, ‘zip’, or basically any other file format.

For example, to search for matches that are mp3 files, you would use:

kind:mp3

Search Mac file types and file formats for matches

Just like before, you can use these operators in either Spotlight, or with direct Finder searches.

Searching for File Names & Specific File Types / Formats

You can take the file type and file format searches further by using the search operator as a prefix to narrow down a name search as well. The usage of an operator in this scenario would be like so:

kind:(operator) "text to search match"

In this image example with Spotlight, we’re searching for ‘kind:pdf’ and the text match of “user_guide” with “kind:pdf ‘user_guide’”

Searching a file type and file name text match in Mac OS X

This works great if you know a general name and file type but can’t remember the file format or exact name (for example, if you know it’s an image file and had the text ‘iPhone’ in the file name, but can’t remember the exact file itself).

Search operators are very powerful and can make locating things on the Mac much easier, whether you start from the Spotlight search feature or a general Finder based file search.