MainspringGuides › Files in Dock
macOS Guide

How to Add a File or Document to the Mac Dock

Updated July 2026 · 2 min read

If you open the same spreadsheet, PDF, or script several times a day, stop digging through Finder for it. The Dock has a dedicated area for files and documents — one drag puts your file a single click away, permanently.

Files go on the right side of the Dock

The Dock is split by a thin divider line. Apps live on the left; documents, folders, and the Trash live on the right. macOS enforces this strictly: if you try to drop a file on the left side, the icons won't part to make room and the drop lands on an app instead (which opens the file rather than pinning it). Aim for the stretch between the divider and the Trash.

Add a file or document

  1. In Finder, locate the file you want to pin.
  2. Drag it down to the Dock, into the area between the divider line and the Trash.
  3. When the existing icons slide apart, drop it.

This works for almost anything: Pages and Word documents, PDFs, spreadsheets, shell scripts, disk images, even saved web links. The Dock stores a reference to the file, not a copy — the original never moves from its folder. That cuts both ways: if you later move, rename, or delete the original, the Dock icon breaks and shows a question mark (see our question mark icon fix).

Open and manage a pinned file

Click the icon once and the file opens in its default app — the same app that opens it when you double-click in Finder. A few more moves worth knowing:

Remove it cleanly

  1. Click and hold the file's Dock icon.
  2. Drag it up and away from the Dock until the Remove label appears above it.
  3. Let go. The icon puffs away — the file itself is untouched, still sitting in its original folder.

Nothing you do in the Dock deletes data. Dragging an icon out only removes the shortcut, never the file, so you can pin and unpin freely as projects come and go.

Make the Dock work for you

Dock behavior is one of Mainspring's specialties: 90+ hidden macOS settings — recents, auto-hide, animation speed, and more — as labelled, reversible toggles instead of Terminal commands.

Try Mainspring free →

Signed & notarized by Apple · 1-day free trial · $29 once

Pinning a whole folder instead?

Folders dropped on the right side of the Dock become stacks — spring-loaded grids of their contents. They behave a little differently from single files, with their own sort and display options. See how to add a folder to the Dock for the details.