Is there any way of excluding the /Users/username/Library (which is hidden by default) from the search scope of NSMetadataQuery.
NSMetadataQuery provides the feasibility for setting the search scope (setSearchScope) , better try out by setting the required search paths.