Sub topic 1
Why tags, smart folders, and the sidebar work together
Most people organise files by moving them into folders. This works until a file belongs in two places at once, or until the folder tree gets so deep that you stop remembering where things are. Finder offers a different approach: leave files where they are and add ways to find them. Tags label items. Smart folders save searches. The sidebar gives you one-click access to both.
This chapter explains the working model behind that approach, so the later chapters on each feature make sense. It also covers the common mistakes people make when they first try it.
Prerequisites
This chapter assumes you already have the following:
- Basic Finder navigation on macOS: opening windows, moving between folders, and switching views.
- Familiarity with files, folders, and file types such as PDF, Pages, and JPEG.
- Comfort using menus and keyboard shortcuts.
You do not need Terminal experience for this chapter. A few Terminal commands appear at the end so you can see the model for yourself. You can skip them and come back later.
The problem with folders alone
A folder hierarchy gives each file exactly one location. That is a strong constraint. Consider a PDF invoice for a client project. It could reasonably live in any of these places:
Clients/Acme/Finance/2026/Taxes/Deductible/
You have to pick one. If you pick Clients/Acme/, you will not find it when you open Taxes/Deductible/ at tax time. The alternatives are to copy the file, which creates duplicates that drift apart, or to create aliases, which you must maintain by hand.
Folders also describe where a file is, not what state it is in. "Needs review", "waiting on someone", and "finished" are states. Moving files between folders to track state is slow, and it breaks any other system that expects the file to stay put, such as a shared project folder or a sync service.
The three pieces
Finder gives you three features that fit together. Each one solves a different part of the problem.
| Feature | What it is | What it answers |
|---|---|---|
| Tag | A label stored with a file or folder | "What is this item about, or what state is it in?" |
| Smart folder | A saved search that behaves like a folder | "Which items match this rule right now?" |
| Sidebar | The left pane of a Finder window | "How do I reach this place in one click?" |
Tags: labels that travel with the file
A tag is a short text label, optionally with a color, that you attach to a file or folder. One item can carry several tags. Many items can share one tag. Because the label is stored as metadata alongside the item, the item does not move when you tag it.
This removes the "pick one location" constraint. The invoice from the example can carry the tags Acme, Finance, and Deductible at the same time, while staying in one folder.
Smart folders: searches you save
A smart folder is a saved Finder search. You define criteria, such as "Kind is PDF" and "Last modified within 7 days", and Finder shows every matching item. It looks and behaves like a folder, but it holds no files. It only holds the question. Each time you open it, Finder runs the question again, so the results stay current as files change.
Because a smart folder can use tags as one of its criteria, it can turn a tag into a live view. For example, a smart folder for "tag is Review and Kind is Document" lists only the documents still waiting for review.
The sidebar: shortcuts to both
The sidebar lists places you visit often: favorite folders, locations such as iCloud Drive, and tags. You can add folders and smart folders to it, and you can choose which tags appear. A saved smart folder placed in the sidebar becomes a permanent one-click view of a search.
How they connect
The three features are not independent. Tags and smart folders both depend on the same underlying system, and the sidebar is the front door to both.
The key link is Spotlight, the macOS search system. Spotlight keeps an index of file metadata: names, kinds, dates, and tags. A tag search and a smart folder both ask Spotlight for matching items. Neither one scans your disk file by file. This has two consequences you will meet later:
- Searches are fast, even over many files.
- If the index is incomplete or out of date, results are missing or wrong. The troubleshooting chapter covers how to diagnose this.
A worked example
Suppose you freelance and receive invoices, contracts, and meeting notes from several clients. You want to see everything that needs action this week without reorganising your folders. Here is the system, described at a high level. Later chapters give the exact steps.
- Leave your files where they are.
- Create tags for state:
To Do,Waiting, andDone. Create tags for clients:Acme,Birch. - As work arrives, tag each file with one state tag and one client tag.
- Create a smart folder with the criterion "Tag is To Do". Save it as
Action This Week. - Add
Action This Weekto the sidebar. Show theWaitingtag in the sidebar as well.
Now one click on Action This Week lists every item tagged To Do, whichever folder it sits in. When you finish an item, you change its tag from To Do to Done. The item disappears from the smart folder on its own, because the search no longer matches it. You never moved anything.
Seeing the model from Terminal
You can confirm that tags are metadata and that searches are queries by using two Terminal commands. These are optional. Replace the path with a file of your own.
The first command prints the tags stored on a file. This is the same data Finder uses when you search by tag.
mdls -name kMDItemUserTags ~/Documents/report.pdfThe second command lists files under Documents that carry the tag named Red. It shows the query behind a tag search.
mdfind -onlyin ~/Documents 'kMDItemUserTags == "Red"'If the first command prints (null), the file has no tags. If the second prints nothing, no indexed file under ~/Documents has that tag. Both commands read from Spotlight, not from the files themselves, which is why they reflect what the index knows.
When this approach fits, and when it does not
Tags and smart folders are not a replacement for folders. They work best alongside them.
- Use folders for stable, physical grouping: a project's files, an archive, or something you share with others.
- Use tags for cross-cutting labels: client, status, or topic that apply across folders.
- Use smart folders for rules based on facts Finder already knows, such as file kind, date, or name. These need no tagging effort.
- Use the sidebar for the few views you open daily. A crowded sidebar is as hard to scan as a deep folder tree.
Common mistakes
- Creating too many tags. A long, inconsistent list (
urgent,Urgent,ASAP,priority) splits your results. Start with a small, fixed set. - Expecting a smart folder to contain files. Deleting a file from inside a smart folder deletes the original. Removing the smart folder itself deletes only the saved search.
- Assuming tags are universal. Tags are stored with the file on macOS. When you send a file to another system, or save it to a location that does not keep extended attributes, the tags may be lost. Test before you rely on tags for files that leave your Mac.
- Trusting results on a disk that is not indexed. Spotlight must index the location. Folders excluded in Spotlight settings and some network volumes do not show up in tag searches or smart folders.
- Adding everything to the sidebar. Keep it short enough that you can see every item at a glance.
What comes next
The rest of the tutorial builds this system piece by piece. You will first learn to apply, rename, and color tags. Then you will see how Spotlight metadata works, search by tag, build criteria, and save smart folders. After that you will arrange the sidebar, combine everything into a workflow, and inspect it from Terminal.
Exercise
A client invoice must be findable under "Acme", "Finance", and "Deductible", but you do not want duplicates and you do not want to move it out of its current folder. Which Finder feature solves this, and why does the file not need to move?
Show answer
Tags. A file can carry several tags at once, and a tag is metadata stored with the file and indexed by Spotlight. Finder finds the file by querying that metadata, so its folder location does not matter.
Exercise
You have a smart folder named "Action This Week" with the criterion "Tag is To Do". You change a file's tag from To Do to Done. What happens to the file in the smart folder, and what happens to the file on disk?
Show answer
The file disappears from the smart folder because it no longer matches the search, which runs again when you open it. The file on disk stays in its original folder, because changing a tag does not move it.
Exercise
A tag search returns nothing for a file you are sure you tagged, and mdls -name kMDItemUserTags on the file prints (null). Name two plausible causes.
Show answer
The tag was not actually applied to that file (for example it was applied to a copy or an alias), or the location is not indexed or the index is out of date, so Spotlight has no record of the tag. A file moved from a system that does not preserve extended attributes can also lose its tags.