How do I have a recursive search for filetypes in a Finder folder?
- no AppleScript
- no Terminal
- 100% Spotlight
Is this possible? Looking for mp3
and jpg
file types. I am using El Capitan (macOS 10.10)
Use the kind
attribute in your Spotlight search. For example, in the search dialog, type
kind:mp3
to find all MP3 files. I have a listing of all the relevant attributes in this answer.
So, for a more relevant example, you would issue a Spotlight search with your search term in double quotes and specify the attribute as follows:
"search term" kind:mp3
If you have a location not indexed by Spotlight, the most efficient tool for doing this is the built in tool find
, however, since "Terminal" is off the table, you're options are limited.
Use Finder Search ⌘ CommandF and create a query for that specific location. Here's an example of a Finder search for images in my "Backgrounds" folder (and below)
Use a 3rd party tool. Disclaimer: There are many tools out there, but the good ones will usually have a cost. These are the ones I'm familiar with however, they are not what I use as I prefer to utilize built in tools like find
, mdfind
and even locate
via the command line.
It is possible to do a recursive search in Finder using Spotlight.
I just forgot to make sure that Spotlight had indexed the volume I was trying to search.
I removed this volume from the Privacy tab in System Preferences > Spotlight, and now I can search it recursively with Finder.