Sub topic 9
Apps, folders, and the Trash in the Dock
This chapter covers what the Dock holds and how to manage it: pinning apps, adding folders, and using the Trash. It assumes you can open System Settings and Finder, and that you know the basic Dock layout from the previous chapter. No Terminal is needed.
Two zones, one divider
The Dock has two zones. A thin vertical divider (a horizontal one if the Dock is on a side edge) separates them.
- App zone: Apps sit left of the divider (above it on a side Dock). Finder is always first.
- Everything else: Folders, files, minimized windows, and the Trash sit right of the divider. The Trash is always last.
The Dock enforces this split. If you drag a folder into the app zone, it lands on the other side of the divider. Finder and the Trash cannot be removed or moved, and nothing can be placed before Finder or after the Trash.
Adding, rearranging, and removing apps
There are three common ways to add an app:
- Drag its icon from the Applications folder (or from Launchpad) onto the app zone. The other icons slide apart to make room.
- If the app is already running, Control-click its Dock icon (or right-click it) and choose Options > Keep in Dock.
- Open the app once and use the same menu. This is useful for apps you launched from Spotlight.
To rearrange, drag an icon sideways and drop it. To remove an app, drag it out of the Dock and release it over the desktop. A "Remove" label appears, and the icon vanishes in a puff of smoke. You can also choose Options > Remove from Dock.
Removing an icon does not uninstall the app. The Dock holds a shortcut to the app, not the app itself, so the app stays in the Applications folder.
The Dock remembers the app's location. If you move an app after pinning it, the icon may turn into a question mark. Remove that icon, then drag the app from its new location.
A running app that is not pinned appears in the app zone only while it runs. Quitting it removes its icon. Pinning keeps the icon there permanently.
Folders in the Dock
Drag a folder from Finder to the right of the divider and drop it. Downloads is often there by default. Click the icon to see its contents without opening a Finder window.
Control-click a folder icon to set how it looks and behaves:
| Setting | Choices | Effect |
|---|---|---|
| Sort by | Name, Date Added, Date Modified, Date Created, Kind | Orders the items shown in the pop-up |
| Display as | Stack, Folder | A stack shows the top item's icon. Folder shows a standard folder icon. |
| View content as | Fan, Grid, List, Automatic | How the contents appear when you click |
Automatic chooses Fan for a few items and Grid for more. Fan can run off the top of the screen with many items, and List scrolls better.
The folder icon is a pointer to the real folder, so changes you make are real. Deleting a file from a Dock pop-up deletes it from disk (it goes to the Trash). Removing the Dock icon leaves the folder untouched.
A few handy behaviors:
- Open an item: Click a file or folder in the pop-up.
- Show in Finder: Click the folder icon in the Dock to open the pop-up, then choose Open in Finder. You can also Command-click an item to reveal it in Finder instead of opening it.
- Move or copy a file into a Dock folder: Drag it onto the folder icon. The file moves if the folder is on the same disk. It copies if the folder is on another disk. Hold Option to force a copy.
Dropping files onto apps
You can also drag a file onto an app icon in the Dock. If the app can open that file type, the icon highlights, and releasing the file opens it in that app. If the icon does not highlight, the app does not claim that file type. This is a quick way to open a file with a different app from its default one.
The Trash
The Trash is a holding area for deleted files. Dragging a file to the Trash does not free disk space. The file still takes up space until the Trash is emptied.
The icon shows its state. It looks empty or full, and it changes to an Eject symbol when you drag a mounted disk or drive onto it. Dropping a disk there ejects it. It does not erase it.
Common Trash tasks:
- Move an item to the Trash: Drag it, or select it in Finder and press Command-Delete.
- Open it: Click the Trash icon to open the Trash window.
- Restore an item: Select it in the Trash window and choose File > Put Back. The file returns to its original folder. Put Back is not offered for items dragged out of order or from a Trash that has lost its record of the origin.
- Empty it: Control-click the Trash icon and choose Empty Trash, or press Command-Shift-Delete in Finder. A confirmation appears. Command-Option-Shift-Delete skips the confirmation.
- Delete immediately: Press Command-Option-Delete in Finder to delete selected items while bypassing the Trash.
You can have macOS clear out old items automatically. In Finder, open Finder > Settings > Advanced and turn on Remove items from the Trash after 30 days.
If a file in the Trash refuses to delete, the usual cause is that it is in use or locked. Quit the app using it, then empty the Trash again.
Where these choices are stored
The Dock keeps its contents in its preferences file, com.apple.dock. Pinned apps are one list, and folders and files are another. The Terminal chapter later in this tutorial covers defaults for this file. Everything you did by dragging in this chapter edits those lists.
Exercise
You drag a folder from your Documents disk onto a Dock folder that lives on an external drive. Is the file moved or copied, and how would you force the other behavior?
Show answer
The file is copied, because the source and the destination are on different disks. Holding Option forces a copy when the disks are the same. To move it across disks instead, drag it to the folder in Finder and press Command while dropping.
Exercise
You remove Safari from the Dock by dragging it out. Can you still open it, and why?
Show answer
Yes. Removing the icon deletes only the Dock shortcut. The app remains in the Applications folder, so you can open it from there, from Launchpad, or from Spotlight.