MainspringGuides › Drag to Dock Icon
macOS Guide

How to Open a File by Dragging It Onto a Dock Icon (Mac)

Updated July 2026 · 2 min read

Double-clicking a file opens it in its default app — but dragging it onto a Dock icon opens it in that app, just this once, with no settings changed. It's the fastest "open this in something else" move on the Mac, and one modifier combo makes even reluctant apps accept the drop.

The basic move

  1. In Finder (or on the desktop), click and drag the file down to the Dock.
  2. Hover it over the app icon you want — say, a Markdown file over TextEdit, or an image over Pixelmator.
  3. When the icon darkens/highlights, that's the app saying "I can open this." Release.

The app launches if needed and opens the file. Your default app assignment is untouched — the next double-click behaves exactly as before, which is what makes this better than changing defaults for one-off jobs. It also works with several files at once: select them all and drop the batch on the icon.

Why some icons refuse the drop

Sometimes the icon won't highlight and the file just springs back. That's not a bug: every app declares which file types it can open, and the Dock respects the declaration. If you hover a .zip over Photos, Photos never claimed zip files, so it doesn't light up and the drop is refused. It's macOS protecting you from opens that would fail — most of the time, a correct call. But apps are sometimes too modest: plenty of editors can happily display files they never formally registered, which is where the override comes in.

Force it: the Cmd+Option drop

  1. Start dragging the file toward the Dock.
  2. Hold Cmd+Option while hovering over the app icon.
  3. The icon now highlights regardless of file type. Release to force the app to try opening it.

Classic uses: dropping a log file or unknown text-ish file onto TextEdit, dropping any config file onto your code editor, dropping an oddly-named export onto Preview. The honest caveat: forcing only makes the app attempt the open. If the format is genuinely beyond it you'll get an error or a window of gibberish — annoying, never harmful. The file itself isn't modified by an attempted open, and nothing needs undoing.

When to change the default instead

Dragging is a one-time override. If you find yourself dropping every PDF onto the same non-default app, stop dragging and change the assignment: select a file of that type, press Cmd+I, set Open with to your app, and click Change All. From then on double-click does what you want and the Dock drag goes back to being the exception. The same logic applies in reverse — keep drag-to-Dock for the apps you use occasionally, so your defaults stay sane.

Make the Dock earn its pixels

Mainspring turns 90+ hidden macOS settings — including a full set of Dock power-ups — into labelled, reversible toggles, so tricks like this sit on top of a Dock that's set up right.

Try Mainspring free →

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

Set the right app permanently

If one app should own a file type outright, make it official — per file or for every file of that kind — with changing the default app on Mac.