Ledge

How to drop a file when the target window is buried

You start dragging a file and the window you meant to drop it on is not there. It is behind the browser, or two windows down, or minimised into the Dock, or sitting on a Space you are not currently looking at. The file is already in your hand with the mouse button held, which is the worst possible moment to start searching. Let go now and it lands on whatever happens to be in front. Keep holding and you have to dig out the right window one-handed while the drag drags on. This is one of the most common small frictions in daily Mac use. There are a few built-in ways to deal with it, and one way to avoid the situation entirely.

Why a held drag makes everything harder

A drag is a promise that you will find the destination before you run out of patience. While the button is down, most of your normal window-management reflexes are awkward or unavailable. You cannot comfortably click another window to raise it, because clicking would drop the file. Keyboard app switching behaves oddly mid-drag. Your attention narrows to keeping the pointer moving and the button pressed, right when you need it wide enough to locate a hidden window.

The result is a familiar little panic. You wiggle the file over the Dock, you swipe hopefully, you edge toward the side of the screen, all while trying not to release too soon. Sometimes it works. Often the file lands somewhere wrong and you start over.

Built-in moves that surface a buried window

macOS does give you tools for this, and they are worth knowing even if you eventually stop needing them.

The most useful is the Dock hover. While dragging a file, move the pointer over the destination app’s icon in the Dock and hold it there for a moment. The app comes forward and its windows appear, so you can drop onto the one you want without ever releasing the file. If the app has several windows, this often spreads them out so you can aim at the right one.

The second is App Exposé and Mission Control mid-drag. With the file still held, swipe down with three or four fingers on the trackpad, or use whichever gesture you have set, and the open windows fan out. Hover the one you want, it comes to the front, and you drop into it. This works even while a drag is in progress, which surprises people the first time they try it.

The third is the screen edge. On a setup with more than one Space, pushing the pointer against the far left or right edge of the display during a drag can, after a pause, slide you to the neighbouring Space with the file still in hand. It is slower and less predictable than the other two, but it is there when the destination lives on another Space.

When the window is not buried but closed

Every one of those tricks assumes the target window exists somewhere. The quieter version of this problem is when the destination app is not open at all. You go to drop the file and realise there is no window to surface, because you closed it an hour ago. Now you are holding a file with nowhere to put it, and opening the app usually means letting go of the file first, which sends you back to the start.

This is the case none of the built-in moves handle gracefully. They can raise a window that is behind others, but they cannot conjure one that is not running.

Set the file down first

The clean way out is to stop holding the file while you sort out the destination. If the file could wait somewhere safe and obvious, you could take all the time you needed to open the right app, switch Spaces, or restore a closed window, and only pick the file back up once the target was actually in front of you.

That is the whole idea behind Ledge. Drag the file up to the notch at the top of the screen and release. It lands on a shelf and stays there. Now your hands are free. Open the app that was closed. Swipe to the Space that holds the buried window. Do whatever you need to make the destination ready. When it is, open the shelf and drag the file down into it, with both the file and the target finally in view at the same time.

Because the file is no longer riding along on a held button, none of the pressure applies. You are not racing a drag or timing a hover. The excavation happens first, calmly, and the drop happens last, once there is somewhere real to drop.

A note on the hand-off

There is a bonus once the file is on the shelf. When you finally pull it down onto the destination, the right version arrives for that destination. A folder receives the file itself. A terminal receives the path as text. A chat window receives an upload. You surfaced the window at your own pace, and the drop still lands in exactly the form that window can use.

Buried windows will keep happening; that is just what a busy screen looks like. The difference is whether you meet them with a file trapped in your hand or with your hands free and the file waiting patiently at the top of the screen.