Sub topic 6
Previewing, Opening, and Revealing Files in Finder
This chapter assumes you can open Spotlight with Command-Space and run a basic file search. You should also know what a Finder window is. After a search returns a file, you still have to decide what to do with it. Spotlight gives you three actions: preview it, open it, or reveal where it lives.
Previewing a result without opening it
Select a result with the arrow keys. For many files, Spotlight shows a preview pane beside the list. The preview can show the first page of a PDF, an image, or the text of a document. It often shows details such as the file's kind, size, and dates.
Previewing is quick and safe. You can check that a file is the right one without launching an app. It is useful when several files have similar names, such as invoice-march.pdf and invoice-march-final.pdf.
If a result has no preview, Spotlight shows the file's icon and basic information instead. Some file types and some apps do not supply preview content.
Opening a file
Press Return on a highlighted result to open it. macOS uses the file's default app. A .pdf usually opens in Preview, and a .numbers file opens in Numbers. You can also double-click the result.
To open a file with a different app, find the file in Finder, then Control-click it and choose Open With. Spotlight itself always uses the default.
Revealing a file in Finder
Opening a file does not tell you where it is stored. To see the folder that contains it, reveal it. Hold Command and press Return on a highlighted result. Finder opens the containing folder with the file selected.
Revealing is useful when you want to move, rename, copy, or attach the file. It also shows you the surrounding files, which are often related.
| Action | Keys | Result |
|---|---|---|
| Preview | Arrow keys to select | Preview appears beside the list |
| Open | Return | File opens in its default app |
| Reveal in Finder | Command-Return | Finder shows the folder with the file selected |
You can also hold Command while a result is selected. In many versions of macOS, the file's path then appears near the bottom of the preview, so you can see the location without leaving Spotlight.
How the three actions fit together
Common errors
- Pressing Return when you wanted the folder. The file opens in an app and you still do not know where it is stored. Use Command-Return instead.
- Assuming the top result is the right one. Spotlight ranks results by relevance, and similar names are common. Check the preview first.
- Expecting a preview for everything. Missing previews do not mean the file is damaged.
- Revealing a file and moving the wrong one. Finder selects the file, but nearby files look similar. Check the highlighted name before you drag or delete.
- Not finding a file that you know exists. The file may not be indexed. Later chapters cover how to check and rebuild the index.
Try it
- Press Command-Space and type part of a document's name.
- Use the arrow keys to select a result and read the preview.
- Hold Command and read the path.
- Press Command-Return to reveal the file in Finder.
Exercise
You searched for "budget" and Spotlight shows three similar spreadsheets. You want to attach the correct one to an email, so you need its folder in Finder. Which steps do you take?
Show answer
Select each result with the arrow keys and check the preview to identify the correct spreadsheet. Then, with that result highlighted, press Command-Return. Finder opens the containing folder with the file selected, and you can drag it into the email or copy it from there. Pressing Return would only open it in an app.
Exercise
What is the difference between pressing Return and pressing Command-Return on a selected Spotlight file result?
Show answer
Return opens the file in its default app. Command-Return reveals it, which means Finder opens the folder that contains it with the file selected.