Smart Folder

Also known as: smart folders

On this page 7

A Smart Folder is a saved Spotlight search in macOS that appears in Finder as a folder but contains no files of its own; instead, it shows every file that currently matches its criteria, such as kind, name, tag or date. Within the Finder & files topic, smart folders are the main tool for building dynamic, criteria-based views of documents scattered across many locations.

Because the results are computed from the Spotlight metadata index, a Smart Folder updates itself as files are created, renamed, tagged or deleted. Moving a file out of a Smart Folder window does not remove it from the disk, and deleting a Smart Folder never deletes the files it displays.

How a Smart Folder works

A Smart Folder works by storing a query instead of content. When a user chooses File > New Smart Folder in Finder, sets a search scope and adds criteria, Finder can save the result as a small file with the extension .savedSearch. That file is a property list containing the raw Spotlight query, the search scope and the display settings.

Each time the Smart Folder is opened, Finder passes the stored query to the Spotlight metadata server (the mds process and its workers). Spotlight answers from its index, which holds metadata attributes such as kMDItemContentType, kMDItemFSName, kMDItemUserTags and kMDItemLastUsedDate. The result list then stays live: while the window is open, new matches appear and files that stop matching disappear.

By default, saved smart folders are stored in the Saved Searches folder inside the user Library folder, at ~/Library/Saved Searches, and Finder offers to add them to the Finder sidebar. A .savedSearch file can also be placed elsewhere, for example on the Desktop or in a project folder, and it behaves the same way.

The following table lists the main components involved and what each one contributes.

ComponentRoleWhere it lives
Spotlight indexAnswers metadata queries quicklyHidden .Spotlight-V100 store on each volume
Saved search fileStores the query and view settings~/Library/Saved Searches by default
Search scopeLimits which locations are searchedThis Mac, a volume or a folder
Finder windowDisplays and refreshes the resultsAny Finder view, including Gallery view
Components behind a Smart Folder

Search criteria and query options

Search criteria define which files belong to a Smart Folder. Finder offers common attributes in its pop-up menus, and the Other attribute list exposes well over a hundred more, including image dimensions, audio duration, author and the original download URL recorded by browsers. Each criterion compares one attribute with a value using operators such as is, contains, is before or is within the last.

Holding the Option key while clicking the plus button adds a nested group with Any, All or None logic. This makes it possible to express rules such as “PDF or Word document, modified this month, not tagged Archived”. Criteria in the top level are always combined with a logical AND.

CriterionTypical settingPractical purpose
Kindis PDF, image or documentCollect one file type from everywhere
Last opened dateis within last 7 daysBuild a recent-work view
Tagscontains InvoiceGather tagged files across folders
File sizeis greater than 1 GBLocate large files during cleanup
Namecontains a project codeTrack files that follow a naming scheme
System filesare includedExpose items normally excluded from search
Frequently used Smart Folder criteria

Text typed into the Finder search field adds a content search across names and indexed file contents. The scope buttons above the results, such as This Mac or a specific folder, are saved together with the criteria, so the scope is part of the definition and not a temporary filter.

A Smart Folder differs from a regular folder or an alias because it references files by criteria, not by location or identity. It complements Finder tags, which mark files manually, and it overlaps partly with Stacks on the Desktop, which group files automatically but only within one folder.

FeatureWhat it containsUpdates automaticallyDeleting it removes files
Smart FolderLive results of a saved queryYesNo
Regular folderActual files and subfoldersNoYes
AliasA pointer to one itemFollows the moved itemNo
Finder tagsA label stored as metadataNo, applied manuallyNo
Desktop StacksDesktop files grouped by kind or dateYes, Desktop onlyNo
Smart Folder versus neighboring features

The most productive pattern combines the two approaches: tags provide the intent, and smart folders provide the view. A user tags a contract Pending in any folder, and a Smart Folder filtered on that tag immediately shows every pending contract regardless of where it is stored.

Creating and maintaining smart folders

Creating a Smart Folder takes a few steps, and editing it later uses the Show Search Criteria command from the window’s action menu. After a change, the Save button writes the new query back to the same .savedSearch file.

  1. In Finder, choose File > New Smart Folder or press Option-Command-N.
  2. Select the search scope, such as This Mac or a single folder.
  3. Click the plus button and add one or more criteria.
  4. Click Save, give the Smart Folder a name and decide whether to add it to the sidebar.
  5. Open it later from the sidebar or from ~/Library/Saved Searches.

Smart folders can be shared by copying the .savedSearch file to another Mac, but the result depends on the recipient’s own index. A folder scope that points to a path that does not exist on the other computer returns nothing, so This Mac scopes travel better than folder-specific scopes.

Limitations and common problems

Every Smart Folder is only as reliable as the Spotlight index. If a volume is excluded in Spotlight privacy settings, is formatted with a file system that Spotlight does not index, or is a network share without server-side search, its files will never appear. A damaged index produces missing or stale results, which a reindex with mdutil -E usually fixes.

SymptomLikely causeFix
Empty resultsScope points to a missing folderEdit the criteria and reset the scope
Files from one disk missingVolume excluded or not indexedCheck Spotlight privacy and run mdutil
Outdated listIndex is rebuilding or corruptedWait for indexing or force a reindex
Too many matchesCriteria are too broadAdd a Kind or date condition
Library files absentSystem files are excluded by defaultAdd the System files criterion
Symptoms, causes and fixes
  • A Smart Folder cannot be a destination: files cannot be dropped into it to store them.
  • Some apps show .savedSearch files as ordinary files in open dialogs, which confuses users.
  • Deleting a file from a Smart Folder window moves the original file to the Trash, so care is required.
  • Very broad queries on large disks can make the window slow to populate.

A plain-language summary

A Smart Folder is like a standing request to a librarian. Instead of putting books on a shelf yourself, you say, “Always show me every book about gardening published this year”, and the shelf refills itself whenever the library changes.

On a Mac, the files stay exactly where they are. The Smart Folder simply remembers your search and shows the current matches each time you open it. Removing the Smart Folder removes only the search, never your files.

An example from practice

A freelance accountant keeps client documents in separate folders per client, with yearly subfolders, which makes it hard to see the whole workload at once. She applies a red tag named To review to every incoming statement and creates a Smart Folder with three criteria: Tags contains To review, Kind is PDF, and Last modified date is within the last 30 days, with the scope set to This Mac.

She saves it to the Finder sidebar. Each morning, the Smart Folder lists the twelve to twenty statements still waiting, across about forty client folders. When she finishes a file and removes the tag, it disappears from the list automatically. The result is a single daily work queue without moving or duplicating a single document, and the folder structure that her backup and archive routines depend on stays untouched.