How to Automatically Sort Files into Folders on macOS Using Smart Folders

Managing a cluttered Mac hard drive often involves dragging and dropping dozens of files from your Downloads folder into specific project directories or media libraries. This manual organization is not only tedious but highly prone to error. Fortunately, macOS includes a deeply integrated, powerful automation tool called “Smart Folders.” A Smart Folder isn’t a traditional folder at all; it is a saved, continuous search query that dynamically gathers files from across your entire system into one unified view based on rules you define.

Understanding How Smart Folders Work

When you place a file into a standard folder, it physically lives in that location on the hard drive. A Smart Folder works differently. It constantly scans your Mac for files that match specific criteria (e.g., “All PDF documents created in the last 7 days” or “All images larger than 5MB”). The files displayed inside a Smart Folder remain in their original locations; the Smart Folder acts merely as an intelligent, automated window looking at them.

This means you can delete a Smart Folder without deleting the files inside it. However, if you open a Smart Folder and delete a file from within it, that file will be moved to the Trash from its original location.

How to Create a Smart Folder

Creating a Smart Folder involves defining the parameters of the automated search.

  1. Click on the Finder icon in your dock to open a new window.
  2. In the top menu bar, click File and select New Smart Folder.
  3. A new Finder window will appear with a dark grey search bar under the toolbar. By default, it searches “This Mac,” but you can click the button next to it to restrict the automation to a specific directory (like your Home folder).
  4. Click the small “+” (Plus) button on the far right side of the dark grey bar to add your first rule.

Configuring the Automation Rules

You can create highly specific workflows by combining multiple rules.

  1. In the first dropdown menu, select the attribute you want to target (e.g., Kind, Last Modified Date, Name).
  2. In the subsequent dropdown menus, refine the criteria. For example, if you chose Kind, select is, and then select Document or Image.
  3. To make the folder even smarter, click the “+” (Plus) button again to add a second rule. You could specify that the “Kind is Image” AND the “Creation date is exactly today.”
  4. You can access hundreds of hidden metadata attributes by selecting Other… from the first dropdown menu, allowing you to sort by things like camera aperture, pixel height, or author name.

Saving the Smart Folder

Once you are satisfied with the files populating the window, you must save the configuration so it remains active.

  1. Click the Save button on the right side of the dark grey search bar.
  2. Enter a descriptive name for the folder (e.g., “Recent Invoices” or “Large Video Files”).
  3. By default, macOS saves Smart Folders in the hidden ~/Library/Saved Searches directory. Leave it there.
  4. Ensure the box for Add to Sidebar is checked. This will place a shortcut to the Smart Folder permanently in the left-hand sidebar of every Finder window for easy access.
  5. Click Save.

Your Mac will now automatically and instantly update the contents of that folder as you download, create, or modify files across your system, keeping you perfectly organized with zero manual effort.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.