I'll take the opportunity to ask: Is there a way to make Spotlight index files in the Library folders? There are sometimes some obscure preference or cache-files that I need to find.
Just type:
chflags nohidden ~/Library
in the Terminal.Personally, I infrequently access my ~/Library and I know it's there and what it contains and I can hop over to it quickly if needed that I prefer it hidden for visual simplicity.
To save you some time, add a folder as follows:
mdimport -f /Library
kMDItemDisplayName == "com.apple.RemoteDesktop.plist"
&& kMDItemSupportFileType != MDSystemFile
which returns nothing on my system, rather than simply kMDItemDisplayName == "com.apple.RemoteDesktop.plist"
which returns three results, one each in subdirectories of /System/Library, /Library, and ~/Library.There's an option in the "full" Spotlight search window that lets you control this for any given search, under "Other..." in the drop-down you get when you click "+" to add criteria. It's called, logically enough, "System files".
Incidentally, the mdfind command line tool doesn't have this behavior by default.