Claude Code can't read a Mac screenshot: File does not exist
Claude Code says "Error: File does not exist." for a Mac screenshot? Rename the file, pass the full path, or save with a name that has no AM/PM.
TroubleshootingUpdated 6 min read
On this page
You drag a screenshot into Claude Code, or type its path, and get this even though the file is on your Desktop:
Error: File does not exist.Why it happens
Reports on the Claude Code issue tracker describe the failure with default macOS screenshot names. One reporter worked around it by switching the Mac to a 24-hour clock. We haven't re-checked those reports against current Claude Code versions, so treat the causes below as ranked by how likely they are, not as confirmed.
| Cause | Symptom | Fix |
|---|---|---|
| Special character before AM/PM (suspected) | Error only on default-named files; a renamed copy works | Rename the file, or avoid AM/PM names |
| Path mangled when dragged or pasted | Error even though the file opens in Preview | Copy the path with ⌥⌘C and paste it |
| Screenshot is on the clipboard, not a file | A placeholder appears, or a temp path that no longer exists | Save the screenshot as a file first |
| Relative path or wrong folder | Works from one project folder, fails from another | Use the full path |
| Terminal can't read the folder | Works for files in your project, fails on Desktop | Allow folder access for your terminal app |
The first row is the one in your title. Apple says screenshot file names begin with "Screenshot" and include the date and time. With a 12-hour clock that includes AM or PM. Whether the space in front of it is an ordinary space is something you can check yourself (next section).
Step-by-step fixes
Fix 1: Rename the file and pass the full path
- In Finder, click the screenshot once, press Return, and type a plain name such as
shot.png. Keep the.pngextension. - With the renamed file selected, press ⌥⌘C (Option-Command-C). Finder copies the file's full path as text.
- Paste that path into your Claude Code prompt. A full path such as
/Users/yourname/Desktop/shot.pngdoesn't depend on the folder you started Claude Code in.
From Terminal you can rename a single Desktop screenshot like this:
mv -n ~/Desktop/Screenshot*.png ~/Desktop/shot.pngThe * matches the odd character without you typing it. -n stops mv from overwriting an existing shot.png. If several screenshots match, mv refuses and changes nothing. To undo, rename the file back in Finder.
Fix 2: Check whether the odd space is really the cause
This read-only command lists your Desktop screenshots with non-ASCII bytes made visible:
ls ~/Desktop | cat -v | grep ScreenshotA regular space prints as a space. If you see M-bM-^@M-/ where the space before PM should be, the name contains a narrow no-break space (U+202F). That matches the reporters' suspicion. If you see a plain space and a renamed copy still fails, move on to Fix 4 and the checklist.
Fix 3: Save screenshots as files, not clipboard images
A screenshot taken with the Control key held (for example Control-Shift-Command-4) goes to the clipboard. Apple's page says you can press Control in addition to the other keys to send a screenshot to the Clipboard instead of your desktop.
Clipboard data is image data, not a file, so it has no path. Users report that pasting one into a terminal shows a placeholder, or a path to a temporary file that is already gone. We can't say how a given terminal or Claude Code version handles pasted images.
The fix is to take the screenshot without Control so it lands on disk, confirm it exists in Finder, then pass its path. Apple also notes you can change the default save location in the Options menu of the Screenshot app. See where screenshots go on a Mac for more.
Fix 4: Stop new screenshots from having AM/PM in the name
Renaming every file gets old. Two options:
- Switch to a 24-hour clock. Open System Settings, search for "24-hour", and turn on the 24-hour time option. This is the reporter's workaround and we haven't verified it. Take a new screenshot and run the
ls | cat -vcheck to see whether the name changed. - Save with your own name template. Pixfinch can do this (see below).
Checklist before you try again
- The file exists in a normal folder (Desktop, Documents, your project), not only on the clipboard.
- The name has no AM/PM, or you renamed it to something plain.
- The extension is correct: not
shot.png.png, and not missing after a rename. Turn on Show all filename extensions in Finder's settings to see it. - You pasted the full path, not a relative one.
- The file opens in Preview. If it won't open there, the file itself is the problem.
- Your terminal app has permission to read the folder. If macOS asked and you said no, allow it in System Settings (search for "Files & Folders").
- Try copying the file into your project folder and referencing it there. If that works, the problem was the path or folder access, not the image.
Save plain-named files with Pixfinch
macOS Screenshot plus a rename is enough for occasional use. If you capture a lot of screenshots for Claude Code, Pixfinch can name files for you. It covers only the naming side: it avoids creating AM/PM names. It doesn't change how Claude Code reads paths or handles pasted images.
Pixfinch's default file name is Pixfinch 2026-11-13 at 14.03.27.png, a date plus a 24-hour time. Out of the box it copies each capture to the clipboard and doesn't write a file until you turn saving on.
- Click the Pixfinch menu-bar icon and choose Settings… (⌘,).
- On General, under After capture, turn on Save to folder.
- On Output, under Saving, check Folder (default
~/Desktop). - Replace the file-name template with
shot-{date}-{time}.png. The Preview: line shows something likeshot-2026-11-13-14.03.27.png. For numbered files, useshot-{counter}.png. - Capture with ⌃⇧4 (Capture Area), the default. Check Settings › Shortcuts if yours differ.
- Select the saved file in Finder, press ⌥⌘C and paste the path into Claude Code.
Settings are covered in Saving, file names and formats. Pixfinch is part of MacSuite ($349 one-time as of November 2026) and runs free for 7 days.
If nothing works
Report it to Anthropic through the Claude Code issue tracker on GitHub, since the failure may be in how Claude Code handles the path. Include:
- your macOS version and Claude Code version
- the exact error text
- whether you dragged the file in or typed the path
- the output of
ls ~/Desktop | cat -v | grep Screenshot - what you already tried (rename, full path, 24-hour clock)
Claude Code reports "Error: File does not exist." for a macOS screenshot.
macOS: [version]. Claude Code: [version]. Terminal: [app].
File name as listed by ls | cat -v: [paste output].
Dragging or typing the path fails. A copy renamed to shot.png [works / also fails].
Full path used: [path]. Screenshot saved to disk, not clipboard.If screenshots won't capture at all, see Mac screenshots not working.
Common questions
Is the odd space really a different character?
We can't confirm it from the reports, which only suspect it. The cat -v check above shows whether your own file names contain a non-ASCII character before PM.
Does a 24-hour clock fix it?
One reporter says it did. We haven't verified it, so check your next screenshot's name before relying on it.
Can Claude Code read a screenshot I copied to the clipboard?
Reports are mixed: some people see a placeholder or a missing temp path. Saving the image as a file and passing its path avoids the question.
Does the problem affect other file types?
The reports we found are about screenshots, and we haven't seen evidence for other files. Any file name with unusual characters could in principle cause the same mismatch, so the rename test applies to them too.