exclude folders in a search with smart folders

setting up a smart folder or doing a search, using the "kind", the only choice is "kind is". I would like to exclude folders. How could you do that? Or if I say kind is documents it finds text files but excludes Excel files. Basically I want everything but folders.

MBP 2.6 and G5 1.8 GHz Powermac, Mac OS X (10.5.5), MBP: 7200 rpm 320GB HD 4GB, G5:160GB x 2 HD, 5 GB

Posted on Jan 21, 2009 11:29 AM

Reply
9 replies

Jan 21, 2009 11:58 AM in response to Paul Hillman

When you bring up the Find window, just leave kind as any, then in the "Search for:" box at the top type in your search term, and also add what you want to exclude with "NOT" and whatever it may be. Thus if I wanted to find all files containing "geranium" in the file name or content, I would enter this:

geranium NOT Folder

I would get all files with geranium in the file name, plus all html files mentioning geranium, as well as text files with the word in the content, but would not get any folders. If I wanted to also exclude certain other things I would arrange window in List view, click on the "Kind" column and note what other files are showing up that I'm not interested in. For instance, suppose I don't want aliases either. I would then amend my Search for field to exclude those as well:

geranium NOT Folder NOT alias

You can refine things to your heart's content using this method.
Francine

User uploaded file
Francine
Schwieder

Jan 21, 2009 7:02 PM in response to Francine Schwieder

In fact search does seem to work very well at all. I am searching a single folder with many folders and files in it.

My first criteria is "last modified date" is "this week"

I get a number of documents and folders.

If I add a second criteria like

kind is Folders

I get nothing. But there are a number of folders that fit both of these criteria.

I didn't have much luck (see above) just using NOT Folder

If instead of the second criteria I add in the upper right search box c NOT Folder

I do not get one of the documents that had a c in its filename (file name is selected in the gray bar)

Jan 21, 2009 7:05 PM in response to Paul Hillman

In System Preferences for Spotlight, add your HD to the exclusion (privacy) list, quit Sys Prefs, and than remove teh HD from the list. This will force Spotlight to reindex the drive.

Jan 22, 2009 9:05 AM in response to Paul Hillman

You should also bear in mind that the location of what you are looking for matters. If the folder is inside of a system folder you must explicitly tell Spotlight to search system items. Take a look at the article I wrote on Spotlight:

http://www.pinkmutant.com/articles/Leopard/leospot.html

Be sure to click the link to see the second page as well, which has more examples.
Francine

User uploaded file
Francine
Schwieder

Jan 22, 2009 5:44 PM in response to Jeffrey Jones2

The folder in not a system folder, It is a folder in a user's home with with subfolders and documents (text, spreadsheets, CAD files etc.) I guess I should state the folder I am searching in is a shared folder on a Mac running Tiger (10.4.11 I think). The user is logged in remotely for filesharing. If it was running Leopard would I get better results? If I turned off the host's Spotlight indexing would that help?

Anyway I tried Jeffrey's suggestion, THANKS JEFFERY!

so my criteria are:
Last modified date is this week
None of the following are true
Kind is Folders

is still shows me a list containing folders.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

exclude folders in a search with smart folders

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.