Ledge

How to hand a file to an AI chat app on your Mac

Drag the file onto the chat’s message box, or click the attach button next to it (usually a paper clip or a plus) and pick the file. For a screenshot, press Control-Shift-Command-4, select the area, then click in the message box and press Command-V to paste the image. If the box shows a line like /Users/you/Downloads/report.pdf instead of an attachment, the chat received the file’s path as text, and the assistant cannot open a file from that.

The same steps work whether the assistant lives in a browser tab or in its own desktop app, with a few differences covered below.

Drop it on the message box

Most AI chat apps accept a dropped file on the message box, and many accept it anywhere over the conversation. As you hover with the file, the box or the window usually changes to show it will take the drop. Let go there, and the file appears above or inside the box as an attachment waiting to be sent.

In a browser tab, aim with more care. A web page only accepts files where its own code is set up to receive them. Drop a PDF a little outside that area and the browser does its usual job instead, opening the PDF in the tab and replacing the conversation. Press Command-[ to go back. Why your browser opens a file instead of uploading it explains where to aim.

You can usually send several files in one message. Select them together in Finder (Command-click each one) and drag them as a group. Each service sets its own limits on file size and number of files, so if one is refused, the message on screen is the best guide.

The awkward part is often getting the file and the chat on screen at the same time. Dropping a file into a chat app the right way covers that window juggling.

Use the attach button when a drop will not land

The attach button opens the standard Mac file dialog, which is the most reliable route and works the same in every browser.

  1. Click the paper clip or plus next to the message box.
  2. If the file is not in front of you, press Shift-Command-G and type or paste its path, such as ~/Downloads/q3-numbers.xlsx, then press Return. To get a path without typing, select the file in Finder and press Option-Command-C first.
  3. Press Return, or click Open, to attach it.

A few file types are worth converting before you attach them, because a chat service may not read Mac-specific formats:

  • Numbers spreadsheets. In Numbers, choose File > Export To > CSV…, and attach the exported file. A CSV is plain text, which almost anything can read; it keeps the values and drops formatting and charts. The same submenu also offers a spreadsheet format that keeps several sheets in one file.
  • Pages and Keynote documents. Export to PDF from the same File > Export To menu.
  • Scanned PDFs. A PDF made from a scanner may be pictures of pages with no text layer. Some assistants read the text from the images and some do not, so if answers about a scan come back vague, that is a likely reason.

Paste an image instead of attaching a file

For screenshots, skipping the file entirely is often quicker.

  • Control-Shift-Command-4 lets you select part of the screen and copies it to the clipboard instead of saving a file. Control-Shift-Command-3 does the whole screen.
  • Click in the message box and press Command-V. The image appears as an attachment.

The same works for an image open in Preview: choose Edit > Select All, then Edit > Copy, and paste it into the chat.

Pasting a file you copied in Finder is less predictable. Some chat pages attach the file, some paste only its name, and some paste the file’s icon as a picture. If the paste gives you the wrong thing, use the attach button. How to paste an image instead of a file on a Mac goes further into why.

Why a path shows up instead of the file

When you copy or drag a file on a Mac, the system offers the destination several versions of it at once: the file itself, its name, sometimes its location as text. Each destination takes the version it understands. A message box that only handles text takes text, and you see a path or a file name instead of an attachment.

The usual causes:

  • You copied the path, not the file. Option-Command-C in Finder, or a tool that copies paths, puts text on the clipboard. Command-V then pastes that text.
  • The box took the text version of a dropped file. This varies by app and browser.
  • The assistant runs in Terminal. Dropping a file onto a terminal window types its path. That is correct there: an assistant that runs on your Mac in the command line reads the file from your disk by its path.

For a chat that runs on a service, though, a path is only a line of characters. Unless the app has been given its own access to your folders, the service cannot reach your Mac’s disk, so it never sees the document behind /Users/you/Downloads/report.pdf. Delete the text and attach the file with the button or a drag from Finder.

What the chat service receives, and when

Once the file is sent, the chat service has a copy: the whole file, not only the part you ask about. Some apps begin uploading as soon as the attachment appears in the box, before you press Send, so treat attaching as sharing. Removing the attachment before sending may not undo an upload that has already started.

A file can also carry more than you see. A PDF may hold the author’s name and old comments, a photo taken on a phone may hold where it was taken, and a spreadsheet may have hidden sheets or columns. Check before you send anything sensitive. What the service keeps afterward, and for how long, is set by the service, so its own settings and policies are the place to look.

Ledge helps with the gathering, not the uploading. When the material comes from several places (a PDF in Downloads, a screenshot on the desktop, an export from Numbers), drag each one up to the notch as you come across it. It lands on a shelf that drops from the notch and stays there until you take it somewhere. When the chat is ready, open the shelf with Option-Space or a click on the notch and drag each file onto the message box. Each destination gets the form it can use: a chat app gets the file itself, and a terminal gets the path as text, which is what a command-line assistant needs.

Ledge itself uploads nothing. It has no account and no cloud, and its release build is blocked from shipping if the binary so much as links a networking symbol. Whatever leaves the Mac is sent by the chat app, when you send it.

Questions

Can the assistant open a file if I paste its path?

Usually not. A chat that runs on a service, in a browser tab or a desktop app, receives only the characters of the path unless the app has been given its own access to your folders. A command-line assistant running on your Mac is different: it can read a file by its path if it has access to that folder.

Why was my spreadsheet refused or read badly?

A Numbers file is a Mac format that many services cannot open. Export it from Numbers with File > Export To, choose CSV or another spreadsheet format the service lists, and attach that instead.

Does Ledge send my files to the AI service?

No. Ledge holds files on a shelf at the notch and hands them to whatever you drop them on. The chat app does the uploading, and only when you attach and send.