How to drag a file from a window's title bar on a Mac
Every saved document open in a Mac app carries a tiny copy of itself in the title bar, called the proxy icon. Hover over the document’s name at the top of the window, wait for the icon to appear beside it, then drag that icon anywhere you would drag the file from Finder: into a mail message, a chat, a terminal or a folder. You never have to go looking for the file on disk.
Where the proxy icon lives
In current versions of macOS the icon is hidden until you ask for it. Move the pointer over the document title in the middle of the title bar and pause for a moment. A small icon for the file type fades in to the left of the name. That icon is the handle.
Some apps show it all the time, and a few older-style apps put it in a toolbar area instead of the center of the title bar. If you would rather see it permanently in every app, there is a setting for that:
- Open System Settings.
- Go to Accessibility, then Display.
- Turn on Show window title icons.
With that switched on, the icon sits next to the title without any hovering, which makes it much easier to find when you are in a hurry.
Dragging it somewhere useful
Press on the icon, hold for a beat until it lifts, then drag. It behaves like the file itself, so the destination decides what it receives.
- A Finder window or the Desktop gets the file, following the usual copy or move rules. Watch the pointer: a green plus badge means a copy will be made. Copy, move, or alias when you drag a file on a Mac covers the modifier keys.
- A new mail message attaches it.
- A terminal window receives the file’s path as text, which is often exactly what you wanted.
- A chat app uploads it into the conversation you have open.
If you press and drag instantly without that short hold, some apps move the window instead of lifting the icon. Pausing first is the whole trick.
When there is no icon to drag
The proxy icon only appears when the window represents a real file on disk. Four situations remove it.
The document has never been saved. A new, untitled document has no file behind it, so there is nothing to hand over. Save it once with Command-S and the icon appears.
The app is not document-based. Chat apps, browsers and most web-based tools show a window title but not a file, because the window is not a file. A browser tab is a page, not a document on your disk.
The file lives inside a library. Some apps keep their content inside a managed library rather than as loose files. You can export from those apps, but their windows do not offer a file to drag.
The icon is dimmed. In some apps a dimmed or grayed icon means there are unsaved edits. You can usually still drag it, but read the next section first.
What happens to unsaved changes
The proxy icon points at the file on disk, not at what is on your screen. If you have typed three new paragraphs and not saved, the copy you drag into an email is the last saved version, without those paragraphs.
The habit that prevents this mistake is simple: press Command-S immediately before you reach for the title bar. Apps that save automatically usually keep the disk copy current, but a manual save costs nothing and removes the doubt.
Two related title bar tricks
The title bar has more in it than the icon.
See where the file lives. Command-click the document title (Control-click works in many apps too). A menu drops down showing each folder in the file’s path, from the file itself up to your disk. Choose any folder in that list to open it in Finder with the file’s location in view. It is the fastest way to answer “where did I save this”.
Rename or move it in place. In many apps, clicking the title itself (not the icon) opens a small panel where you can rename the document, add tags and choose a different folder from a Where menu. That moves the file without leaving the app. In apps that do not offer this panel, the File menu often has Rename and Move To items instead.
When the destination is not on screen
The proxy icon has one weakness: you have to keep holding it until you reach the target. If the email you want to attach it to is buried under four windows, or sits in another Space, you end up juggling windows with a file pinned under your finger.
You can hover over a Dock icon while dragging to bring that app forward, and Mission Control lets you pick a window mid-drag. Both work, and both are fiddly. There is more on these in how to drop a file when the target window is buried.
The other approach is to separate picking up from putting down. Ledge turns the notch at the top of a MacBook screen into a shelf. Drag the proxy icon up to the notch and let go; the file waits there. Then take your time getting the destination window ready, open the shelf with Option-Space or by clicking the notch, and drag the file off. On a Mac without a notch, the shelf lives at the top center of the screen and works the same way.
Because Ledge hands each destination the form it can use, the same item behaves sensibly wherever it lands: a terminal gets the path as text, a chat app gets an upload, and Finder gets the file itself. Files stay on your Mac throughout; there is no account and nothing goes to a server.
Questions
Why does dragging the title bar move my window instead of the file?
You grabbed the title or empty title bar rather than the icon, or you started moving before the icon lifted. Hover until the icon appears, press on it, pause briefly, then drag.
Does dragging the proxy icon move the original file?
Into another app, such as mail or chat, the app receives a copy or an upload and the original stays put. Into a Finder folder, the standard Finder rules apply, so check the pointer badge before you let go.
Can I drag the proxy icon of a PDF open in Preview?
Yes. Preview is a document-based app, so any PDF or image open in it has a proxy icon as long as it exists as a file on disk.