Drag Files From a Window's Title Bar on Mac
You are looking at a document in Preview and need to attach it to an email. The reflex is to hunt it down in Finder — but the file is already in front of you. The little icon beside the window's title, called the proxy icon, is the file: drag it anywhere a file can go. It is one of the oldest Mac tricks and one of the most underused.
Find the proxy icon (it hides now)
In document apps — Preview, TextEdit, Pages, Numbers, most editors — the title bar shows the document's name, and next to it a small file icon. Since macOS Big Sur that icon is hidden until you hover: rest the pointer on the window title for about a second and the icon fades in. Holding Cmd while hovering reveals it instantly.
If you use proxy icons often, make them permanent: open System Settings → Accessibility → Display and turn on Show window title icons. The icons stay visible in every title bar, no hovering. Turn the switch off to undo it. The setting exists on Ventura, Sonoma, and Sequoia.
Finder windows have proxy icons too — the folder icon in the title bar represents the folder itself, and everything below applies to it.
Drag it like the file it is
Once visible, click and hold the proxy icon briefly, then drag. It behaves exactly like dragging the file's icon out of Finder:
- Into Mail or Messages — attaches the file to the message.
- Into Slack, a browser upload box, or any drop zone — uploads the file you are viewing. No Finder round trip, no "where did I save that."
- Onto a folder or the desktop — moves the file there (drag to another disk to copy; hold
Optionto force a copy). The window keeps working on the file at its new location. - Onto an app icon in the Dock — opens the same file in that other app. Viewing an image in Preview and want it in an editor? Drag the proxy icon onto the editor's icon.
- Into a Terminal window — types the file's full escaped path at the cursor.
One caution: because a same-disk drag is a genuine move, you can relocate a document you only meant to attach. If a drop lands somewhere unexpected, Cmd+Z in Finder puts it back.
Cmd+click the title for the file's path
The title bar hides a second trick: hold Cmd and click the window's title (in Finder, the same works on the window title too). A menu drops down showing the file's full location as a chain — document, folder, parent folder, up to the disk. Click any level to open that folder in Finder. It is the quickest answer to "where does this file actually live?", especially for documents opened from Recents, Spotlight, or an email attachment.
Apps with autosave add one more convenience: click the window title itself and a small panel lets you rename, tag, or move the document in place — no Save As dialog required.
Where it does not work
Proxy icons only exist where a window represents a saved file. Unsaved documents show no icon (or a dimmed one) until the first save. Non-document windows — browsers, Settings, most Electron apps like Slack itself — have nothing to drag. And in full screen the title bar auto-hides; push the pointer to the top of the screen to bring it back, then hover as usual.
Hidden-until-hover icons are macOS in a nutshell: powerful, invisible, off by default. Mainspring surfaces 90+ settings like this as labelled, reversible one-click toggles.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Prefer the path as text?
When you need the file's location as a string — for a script, a support ticket, a Terminal command — skip the dragging and read our guide to copying a file path on Mac; Finder has a hidden Copy as Pathname command behind the Option key.