How to turn a file into a link you can paste
Sometimes you do not want to send a file. You want to send a pointer to it. A line in your notes that opens the right document when you click it. A reference in a task that jumps to the exact folder. A way to say “this thing, here” without attaching a copy that will drift out of date the moment someone edits the original. On a Mac there are a few ways to turn a file into a link you can paste, and they suit different needs.
First, a clear distinction. A link to a file on your own disk only works on your own Mac, because it points at a location only your Mac has. A link to something stored on the web works for anyone. Most confusion about “turning a file into a link” comes from mixing these two up, so it is worth keeping them apart as we go.
File URLs for links on your own Mac
Every file on your Mac has an address, and you can write it as a link.
The format is a file URL: the text file:// followed by the full path to the item. A document in your home folder becomes something like file:///Users/you/Documents/report.pdf. Paste that into an app that understands links, and clicking it opens the file in its usual app. This is genuinely useful in personal notes, in a local task list, or anywhere the link and the file both live on the same machine.
To build one, you need the path. Select the file in Finder, right-click, hold the Option key, and choose “Copy as Pathname” to get the plain path on your clipboard. Add the file:// prefix and you have a working link. The catch is that spaces and special characters technically need encoding to be a strictly valid URL, which is fiddly to do by hand, so for casual use many apps forgive a plain path and many do not.
Webloc files, the Mac’s own link objects
The Mac has a native way to save a link as a file you can drag around: the webloc.
Drag a URL out of Safari’s address bar onto your desktop and you get a .webloc file. Double-click it later and it opens that page. You can do the reverse too, dragging a webloc into a text field or an email, and it behaves like the link it stands for. Weblocs are how the Mac treats a link as a real object you can move, file away, and hand off, rather than just a string of text.
The useful trick is that a webloc can point at a web address you want to share widely, or at a local file:// address for your own use. Either way it is a small object that carries a link inside it. The limit is the same as before: a webloc pointing at a file on your disk only resolves on a Mac that can see that disk.
When a link should really be an upload
Here is the honest part. A lot of the time when people try to turn a file into a link, what the other person actually needs is the file. You paste a file:// link into a chat, it works perfectly on your machine, and the person on the other end clicks a dead pointer to a folder that does not exist for them. The link was never going to travel, because the file lives only on your disk.
So the real question is not “how do I make a link” but “what does this destination need”. A teammate in a chat needs the file uploaded. A terminal needs a path. A notes app on your own Mac is the one place a local link truly shines. The right form of the same file is different in each spot, and choosing it by hand every time is the tedious bit.
Letting the destination decide the form
This is the problem Ledge is built around. It turns the notch, or the top centre of the screen on a Mac without one, into a shelf. You drag a file up to that spot and it waits there. When you drag it back off, the destination decides what form it receives.
Drop the file on a text field and it can arrive as plain text. Drop a link on the shelf and hand it to the right place and it travels as a webloc, the Mac’s own link object. Drop a file on a chat app and it uploads, because a link would be a dead end there. Drop it on a terminal and it hands over the path. Drop it on a Finder window and it moves the file itself. You throw the same thing at the shelf, and each destination receives the version it can actually use, which is exactly the choice you would otherwise be making by hand.
That does not replace knowing how file URLs and weblocs work, and there are times you genuinely want to craft a link and paste it yourself. But for the everyday case, where the same item might go to a note, a chat, and a folder in the same few minutes, letting the destination pick the form is far less fuss than deciding “link or file” over and over.
The short version
To link a file on your own Mac, write a file:// URL from the file’s path, or drag a link out to make a webloc you can move around. Both work best when the link and the file stay on the same machine. When the file has to reach someone else, they almost always need the file, not a pointer to a place only you can see. And when one item keeps heading to different destinations that each want a different form, a shelf that rewrites the hand-off saves you from guessing right every time.