Sub topic 12
Previewing with Quick Look and Get Info
This chapter assumes you can open Finder windows, select items, and use the Command and Option keys. It covers two tools for inspecting files without opening their apps: Quick Look, which shows what a file contains, and Get Info, which shows what a file is and how it is set up.
Why preview instead of open
Opening a file launches an app, which can take time, lock the file, or change it by accident. When you are sorting files, you usually only need to confirm that a file is the right one. Quick Look and Get Info answer that question without opening the file.
| Question | Tool |
|---|---|
| What does this file look like? | Quick Look |
| How big is it, when was it changed, where is it stored? | Get Info |
| Which app opens it, and who can edit it? | Get Info |
Quick Look
Quick Look is a built-in viewer. It renders many file types in a floating panel, so you can see a document, image or video without launching its app.
Opening and closing it
- Select a file in the Finder.
- Press the Space bar. The preview appears.
- Press Space again, or Escape, to close it.
You can also choose File > Quick Look, or Control-click the file and choose Quick Look. With several items selected, Space opens a preview of all of them.
What you can do inside the panel
- Press the arrow keys to move to the next or previous item in the folder. The panel stays open and updates.
- Press Command-Y for the same preview as Space. Press Option-Space for a full-screen preview.
- In a multi-item preview, click the grid button to see all selected items as an index sheet.
- Scroll through multi-page PDFs and documents, or play audio and video with the controls shown.
- Use the toolbar for quick actions. Depending on the file type, these include Rotate, Markup (draw or annotate), Trim (cut a video or audio clip), and Share. Markup edits the file, so use it deliberately.
Quick Look handles most common formats: PDF, images, text, Office documents, audio, video, and many others. Some file types show only a large icon. This happens when macOS has no previewer for that format. A third-party app can add a previewer.
Previewing a folder's contents
Quick Look on a folder shows only its icon and size. To see what is inside, open the folder, or use Column view or Gallery view, which show previews as you select files.
Get Info
Get Info opens a window that lists a file's properties. Select an item and press Command-I. You can also choose File > Get Info or Control-click and choose Get Info.
One window per item, or one window for all
Command-I opens a separate window for each selected item. Hold Option while choosing File and the command changes to Show Inspector. The Inspector is a single window that updates as you click different items. It is more useful when you are checking many files in a row.
Pressing Command-Option-I opens the Inspector directly.
Sections of the window
The window is divided into collapsible sections.
- General. Kind (file type), size, location (Where), created and modified dates. For a folder, the size is calculated by adding up its contents, which can take a moment.
- More Info. Extra details such as image dimensions or the date a file was last opened.
- Name & Extension. The full name and a checkbox, "Hide extension". Showing extensions helps you tell
report.pdffromreport.docx. - Comments. A free text note that Spotlight (the macOS search index) can search.
- Open with. The app that opens this file by default.
- Preview. A thumbnail of the file.
- Sharing & Permissions. Who can read or write the file.
Changing the default app for a file type
By default, double-clicking a .txt file opens the same app every time. To change it for one type of file:
- Select one file of that type and press Command-I.
- Open the Open with section and choose the app.
- Click Change All… and confirm.
Every file of that type now opens in the chosen app. Without Change All, the choice applies to only the file you selected.
Locking a file
In General, tick Locked to protect a file from edits and deletion. A locked file asks for confirmation before you move it to the Trash, and apps cannot save changes to it until you untick the box. This is a quick safeguard for finished work. It is not security: anyone can untick the box.
Permissions
Under Sharing & Permissions, each user or group has a privilege of Read & Write, Read only, Write only (Drop Box), or No Access. Click the padlock and enter your password to make changes. For personal files in your Home folder, you rarely need to change these. Careless changes to system folders can stop apps from working, so leave those alone.
A worked comparison
The two tools answer different questions about the same file. Say you have a file called scan_0042.pdf and need to know whether it is the contract you want.
- Select it and press Space. You see the first page and can scroll to the signature page.
- Press Command-I. You see that its Kind is PDF, its size is 2.4 MB, and it was modified in March.
- If it is the right file, rename it. If not, press the Right Arrow in Quick Look to check the next scan.
You can do all of this without opening the Preview app.
Common errors
- Space bar renames instead of previewing. If you pressed Return, the name field is active. Press Escape, then Space.
- Space does nothing. Focus may be in the search field or sidebar. Click on a file in the main window first.
- A folder size shows "Calculating…" for a long time. Large folders, network drives, and iCloud Drive items that exist only online take longer. See the iCloud chapter for how stored-online files behave.
- Quick Look shows a blank or generic icon. There is no previewer for that format. Open the file normally.
- Change All applied to the wrong type. Repeat the steps with a different app. The setting is not permanent.
Related command line tools
Terminal offers equivalents that can be scripted. This command opens a Quick Look panel for a file:
qlmanage -p ~/Documents/scan_0042.pdfThis one lists a file's metadata, which is the data behind much of Get Info:
mdls ~/Documents/scan_0042.pdfThe output includes fields such as kMDItemKind, kMDItemFSSize and kMDItemContentModificationDate. These are the same fields Spotlight uses for searches and smart folders.
Exercise
You have 30 scanned PDFs in a folder. You want to see the contents of each one, and also check each file's size. Which keyboard shortcuts let you do this without opening any apps and without a new window for every file?
Show answer
Select the first file and press Command-Option-I to open the Inspector, which updates as the selection changes. Press Space to open Quick Look, then use the arrow keys to move through the files. The preview shows the contents, and the Inspector shows the size.
Exercise
You want every .txt file on your Mac to open in a different text editor. Which Get Info section do you use, and which button applies the change to all files of that type?
Show answer
Use the Open with section, choose the app, then click Change All… and confirm.