Sub topic 12
Putting it together: a tag and smart folder workflow
This chapter combines tags, smart folders, and the sidebar into one organisation system. It assumes you can apply and rename tags, build a Finder search with criteria, save a smart folder, and edit the sidebar. Earlier chapters covered those mechanics. This one covers how to choose what goes where, so the system still works six months from now.
The division of labour
Each of the three features does a different job:
| Feature | What it does | Who supplies the information |
|---|---|---|
| Tag | Stores a label on a file | You, by deciding |
| Smart folder | Runs a saved search against the Spotlight index | The system, by computing |
| Sidebar | Gives one-click access to both | You, by choosing what to pin |
A tag records a judgement the computer cannot make, such as "this belongs to the Atlas project" or "I still need to read this". A smart folder handles everything the computer can work out itself: file kind, modification date, location, and the tags you applied. If you tag a file with something Finder already knows, such as "PDF" or "Recent", you create work for yourself. Use a smart folder criterion for those instead.
The sidebar is the last step. It holds shortcuts and stores no files, so keep it short enough that you can see all of it at once.
Step 1: Choose two kinds of tags
A small, consistent vocabulary works better than many tags. Use two groups.
- Project tags say which piece of work a file belongs to. Examples:
Atlas,Taxes 2026,Wedding. Each file normally has one. - Status tags say what you need to do next. Examples:
To Review,Waiting,Done. Each file has at most one at a time.
Give each group its own color so you can tell them apart in a Finder window. For example, make all status tags shades of red and orange, and all project tags blue or green. Finder offers only seven colors, so you will reuse them. The tag name is still what identifies a tag. Color is a visual cue.
Avoid tags that duplicate a folder name, a file type, or a date. If a file lives in Atlas/Invoices, a tag called Invoices adds nothing.
Step 2: Write down your smart folders before you build them
Decide which questions you ask often, then write each as a sentence with criteria. This is the same set of attributes you used in the criteria chapter.
- Needs review this week: tag is
To Review, last modified within the last 7 days. - Atlas PDFs: tag is
Atlas, kind is PDF. - Waiting on others: tag is
Waiting, no date limit.
Each smart folder should answer one question. A folder that tries to answer three produces a long list that you stop checking.
To build the first one, choose File > New Smart Folder, type To Review in the search field, and pick the tag suggestion. Then click the plus button to add a row for the date criterion. Finally click Save, name it, and tick Add To Sidebar. The result is a saved search, not a copy of any file. Dragging a file out of it moves the real file, and deleting from it deletes the real file.
Choose the search scope deliberately. Searching "This Mac" finds files in places you did not expect, such as downloaded attachments. Searching a specific folder, such as Documents, keeps results focused. Apply that restriction when you save the folder.
Step 3: Check the folder against the index
Before you trust a smart folder, confirm that Spotlight sees the tags you think you applied. The same data Finder uses can be read in Terminal.
mdls -name kMDItemUserTags ~/Documents/report.pdfIf the output is (null), Spotlight has not recorded a tag for that file. The smart folder will not show it, whatever color dot Finder displays.
You can also reproduce the smart folder's criteria as a query. This one mirrors "Needs review this week":
mdfind -onlyin ~/Documents 'kMDItemUserTags == "To Review" && kMDItemFSContentChangeDate >= $time.today(-7)'And this one mirrors "Atlas PDFs":
mdfind -onlyin ~/Documents 'kMDItemUserTags == "Atlas" && kMDItemContentType == "com.adobe.pdf"'If mdfind returns a file that the smart folder does not show, or the reverse, the saved criteria differ from what you meant. Open the folder, choose Edit Criteria, and compare. Tag names in queries are case-sensitive in some contexts and contain spaces, so match them exactly and keep the double quotes inside the single quotes.
Step 4: Arrange the sidebar
Pin the smart folders you use daily and nothing else. A reasonable layout:
- Favorites: your three or four working smart folders and one or two real folders you open constantly.
- Locations: leave as is.
- Tags: show only the status and project tags that are active now.
Place the smart folders you use most at the top, because you reach them without scrolling. In Finder Settings, under Tags, you can drag tags to reorder them and choose which appear in the sidebar. When a project ends, remove its tag from the sidebar rather than deleting the tag. The files keep their label and you keep the history, but the sidebar no longer shows a project you have stopped working on.
Step 5: Run the workflow
A normal day looks like this:
- A file arrives. Apply a project tag and, if action is needed, a status tag. Use Get Info or the Tags field in the save dialog, as covered earlier.
- Open the "Needs review this week" smart folder from the sidebar.
- After you finish a file, change its status tag from
To ReviewtoDone. The file leaves the review list because it no longer meets the criteria. You do not move or delete anything.
That last point is the main benefit. Changing a tag changes which smart folders a file appears in. The file stays where it is, and your views update.
Edge cases and failure modes
- A file has the wrong status tag. Smart folders are only as accurate as the tags behind them. Do the status change when you finish the work, not later in a batch.
- You rename a tag. After renaming one in Finder Settings, open each smart folder that uses it and confirm it still returns results. Run the
mdfindquery with the new name. A smart folder that stores the old name matches nothing. - A drive is not indexed. Smart folders only find what Spotlight has indexed. External drives, network shares, and folders excluded in Spotlight settings may not appear. Use a real folder on those, or enable indexing where the volume supports it.
- A file is not found right after tagging. Indexing is not instant. Wait a few seconds and reopen the folder before assuming a fault.
- Too many tags. If you cannot remember what a tag means, delete it from Finder Settings. Removing a tag from the list takes it off files that carry it, so check first with a search.
Exercise
Exercise
You tag a PDF with To Review, but your "Needs review this week" smart folder does not list it, although the file was modified yesterday. Name three checks you would make, and one Terminal command for the first.
Show answer
First, confirm Spotlight sees the tag: run mdls -name kMDItemUserTags ~/Documents/file.pdf, and check that the tag name appears and matches exactly. Second, check the smart folder's saved criteria and scope: confirm that the tag name is spelled the same way and that the search scope includes the file's location. Third, check indexing: confirm the volume or folder is indexed by Spotlight and wait briefly for a recent change to be indexed. You can also run the equivalent mdfind -onlyin ~/Documents 'kMDItemUserTags == "To Review"' to see whether the index returns the file.
Exercise
Why should "PDF" not be a tag in this workflow?
Show answer
Finder already knows each file's kind, so a smart folder criterion (Kind is PDF) can find PDFs without any effort from you. Tags should record decisions the system cannot compute, such as project or status.