Include Mac System Files in Mac OS X Searches with a Simple Adjustment
Need to find a system file or several, but you aren’t entirely sure the directory path of where that system item is located on Mac OS? Maybe you’re looking for a plist file and you aren’t sure if it’s in the user Library folder, or the System Library folder? Rather than digging about in the variety of / root directories, use this excellent Finder based Spotlight search trick to include system files within your search results.
This uses the Finder based Spotlight Search feature that is built into the top-right corner of every Mac OS X Finder window, it is not accessible through the standard search feature found in the Spotlight menu bar.
How to Search System Files in Mac OS X
This trick to search system files on a Mac applies to all versions of Mac OS:
- Go to the Finder if you haven’t done so already and start a new file search (hit Command+F or go to Find from the File menu)
- Type the search query for a system file into a Finder window search as usual
- Click the plus (+) button to add additional search parameters
- Click the “Kind” menu and choose “Other”
- At the attribute selection box, type “System” and choose the “System files” attribute, then click “OK”
- Now click the next search parameter for “aren’t included” and select “are included” instead
- Find the searched for system file(s) as intended
If you just want to test this out and can’t think of a system file off the top of your head, use “Finder.app” as the search query in spotlight as demonstrated in the screen shots above. You’ll find nothing shows up initially, but after the attribute change for ‘System Files’ has been included and set to “are included”, the Finder.app application shows up in the Finder search results. Because Spotlight looks inside files as well as the file name by default, you’ll also find any other system file that references Finder.app included in the results, like plist files and other system documents.
You can choose the “Save” button in the search query to save the system files attributes for easy access in the future.
If you’re not finding specific files that you know are supposed to be included in this list, you may be attempting a search during the time that Spotlight is reindexing, or you may have excluded the directories or files from Spotlights indexing abilities. You can also manually rebuild the index yourself if you suspect there is an issue with what files and folders are returned by Spotlight.
Thanks to Christian on our Facebook page for the reminder about this great trick!