Sub topic 12
Previewing with Quick Look and Get Info
This chapter assumes you can open a Finder window, select items, and use the sidebar. You should also know what a file's extension is, such as .pdf or .docx.
Two Finder features let you inspect a file without opening it in an app: Quick Look shows the contents, and Get Info shows the properties. Both help you decide where a file belongs before you move, rename, or delete it.
Quick Look: see the contents
Quick Look is a built-in preview window. It reads the file itself and shows it, so no app has to launch.
- Select a file in the Finder.
- Press the Space bar. A preview window opens.
- Press Space again, or Escape, to close it.
You can also press Command-Y, or Control-click the file and choose Quick Look.
Quick Look works with images, PDFs, text files, audio, video, and most Office documents. Some previews have controls. For example, you can scroll through a multi-page PDF, play a video, or use the markup button to annotate an image.
Useful variations:
- Select several files and press Space. Use the arrow keys to move between them.
- Press Option-Space to open the preview in full screen.
- Hold Command and press the grid button, or press Command-Return in the preview, to see all selected files as an index sheet.
The preview shows only what the file contains. It does not change the file unless you use a markup tool and choose to save.
Get Info: read and change properties
Get Info is a panel of details about one item. Select an item and press Command-I. You can also Control-click it and choose Get Info.
The panel has these sections:
| Section | What it shows |
|---|---|
| General | Kind, size, location (Where), created and modified dates |
| More Info | Extra details such as image dimensions or the date last opened |
| Name & Extension | The file name, with a choice to hide the extension |
| Open with | Which app opens this file type |
| Preview | A thumbnail of the content |
| Sharing & Permissions | Who can read or write the item |
Two settings are worth knowing:
- Open with. Choose an app, then click Change All... to make every file of that type open in it.
- Locked. Tick this box in General to stop the file from being edited or deleted by accident.
For a folder, the size can take a moment to calculate, because the Finder adds up everything inside it.
Checking from Terminal
The same size and location details are available in Terminal. This command prints a file's kind, size in bytes, and modification date:
mdls -name kMDItemKind -name kMDItemFSSize -name kMDItemContentModificationDate ~/Documents/report.pdfmdls reads the Spotlight metadata for the file. Replace the path with a file that exists on your Mac.
A common mistake
Get Info shows a size, but a folder's size may include files you can't see in the Finder, such as hidden files. The number can therefore differ from what you expect from the visible items.
Exercise
You have 40 downloaded files with unclear names. Which two shortcuts let you check the contents of a file and then see its size and location?
Show answer
Select the file and press Space to preview its contents with Quick Look. Then press Command-I to open Get Info, where General shows the size and the Where line shows the location.
Exercise
Every .txt file on your Mac opens in an app you don't like. How do you change it for all of them?
Show answer
Select one .txt file, press Command-I, open Open with, choose the app, and click Change All...