Ledge

How to open a file in a specific app by dragging

Double-clicking a file opens it in whatever app macOS has decided is the default. That is fine until it is not. You want the PDF in a markup tool rather than Preview, the image in an editor rather than the viewer, the code file in one particular editor and not the other one you also have installed. The reliable way to choose the app yourself is to drag the file onto it, but dragging onto an exact app is fussier than it sounds.

This is a short guide to the ways of opening a file in the app you actually want, and to a calmer method when the direct drag keeps missing.

The built-in ways first

Before anything else, it is worth knowing the standard options, because sometimes they are all you need.

Right-click the file in Finder and choose Open With, and you get a list of apps that can handle it. Pick one and the file opens there for this one time, without changing the default. If you hold Option, Open With becomes Always Open With, which sets that app as the default for this file. This is the cleanest route when you just want a one-off.

If you want every file of a type to open in a chosen app from now on, select one such file, press Command-I to open the Get Info panel, expand the Open With section, choose the app, and click Change All. From then on double-clicking any file of that type uses your app.

Dragging is the third route, and the one people reach for when the app is already open and visible. You drag the file from Finder onto the app window, or onto the app icon in the Dock, and it opens there. It feels direct, and when it works it is the fastest of the three. The trouble is the aiming.

Why the direct drag misses

Dragging a file onto a specific app asks a lot of one gesture. You hold the file, keep the mouse button down, and steer to a target that has to be visible and has to accept the drop on the exact spot you land.

If the app is behind other windows, you cannot see it to aim at it. If it is in the Dock, the icon is a small target and a near miss opens the wrong neighbour. If the app is closed, there is nothing to drop onto at all, so you let go, open the app, wait, and try again. And the whole time your hand is committed to holding the file, which means one slip and the drop lands on the desktop or back where it started.

There is a quieter problem too. Some apps want the file itself, some want the text of its path, and some fields only take plain text. A direct drag hands over whatever the source offered, so occasionally you aim correctly and the drop still does nothing useful.

Set the file down, then choose the app

The way to take the strain out of this is to stop doing the carrying and the aiming at the same time. Give the file somewhere to wait while you get the target ready.

The top centre of the screen, where the notch sits next to the clock, is the natural resting spot. Nothing lives there by default and no window ever covers it. Ledge turns that strip into a shelf: drag the file up toward the notch and let go, and it lands on a shelf that drops down and stays.

Now the aiming is a separate, unhurried step. Bring the app you want to the front, or open it if it was closed and wait for it to load, then reach up to the shelf and pull the file down into the app. You are dropping onto a window that is right there in front of you, not chasing one behind others. The file was never at risk of snapping back, because it was parked safely the whole time.

Handing the app the version it can use

Once the file is on the shelf, the hand-off does the format work for you. When you drag the file off, Ledge looks at where it is going and gives that destination the representation it understands.

Drop it on an editor and it opens the file. Drop it into a terminal and it types the file path as text, which is what you want when you are about to run a command against it. Drop it into a text field or a chat box and it can hand over plain text or a link rather than forcing a file where one does not belong. The same file goes to each place, and each one receives the shape it can actually open, so you spend no time converting or copying paths by hand.

You can also set, in Ledge settings, which apps stay available as routing destinations. Those apps remain ready to receive a file even when they are closed, so the editor you always open certain files in is one pull away instead of something you have to launch first.

A quick decision guide

For a genuine one-off, use right-click and Open With. For a permanent change, use Get Info and Change All. Both are built in and cost nothing to learn.

When you are moving files around all day and the app you want is often buried, closed, or a poor drag target, the shelf approach saves the most fuss. Park the file at the top of the screen, get the exact app ready without pressure, then pull the file down into it. The carrying and the aiming become two calm steps instead of one anxious gesture.

Opening a file in a specific app is really about control: you, not the default handler, decide where it goes. Dragging gives you that control, and giving the file a place to pause first is what makes the drag land where you meant. Ledge does all of this on your Mac, with no account and no cloud, so nothing you open is uploaded anywhere along the way.