Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a saved search to my sidebar that contains all labeled files on my Mac, except files that are in certain folders. Files that are in subfolders of the excluded folders shouldn’t be excluded from the search though.

Here’s an example to make it a little bit clearer:

  • Files and folders that are directly in ~/Downloads/ should be excluded from the search.
  • Files that are in subfolders of ~/Downloads/ and are labeled, like ~/Downloads/foo/ or ~/Downloads/bar/ shouldn’t be excluded.
  • The list of subfolders is dynamic.

I don’t want to use a third-party app for this task.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.