everyday mac tools

Where did that file save? Finding it again on a Mac

· 6 min read

If the app you saved from is still open, Command-click the document’s name in the window’s title bar. A menu drops down showing every folder the file sits inside; choose one and Finder opens it. If the app is closed, reopen it and use File > Open Recent, then do the same trick. Failing that, Finder’s Recents and a search for files modified today will find it.

The file is almost never lost. It is somewhere sensible that you did not choose on purpose.

Ask the app that saved it

The app knows exactly where it put the file, and there are three ways to get it to tell you.

The title bar menu. In most document apps, Command-click (or Control-click) the file’s name at the top of its window. You get a list running from the file up through each folder to the disk. Pick any folder in the list and Finder opens it with the file inside.

The name popover. In many Apple apps, including TextEdit, Preview and Pages, clicking the file’s name in the title bar opens a small panel with Name, Tags and Where. The Where menu shows the current folder, and you can move the file to a better one from right there.

Open Recent. If you have closed the document, reopen the app and look under File > Open Recent. Open the file from that list, then use the title bar menu to see where it lives. Some apps also offer File > Show in Finder or a similar command, which goes straight there.

For downloads, the browser keeps its own list. In Safari, click the Downloads button in the toolbar and then the magnifying glass next to the file to show it in Finder.

Check Recents and Recent Items

Finder’s sidebar has a Recents entry that shows files you opened or created lately, from all over the Mac, with the newest first. Click it and look near the top. When you find the file, select it and press Command-R (File > Show in Enclosing Folder) to jump to the folder it is actually in.

The Apple menu’s Recent Items submenu is a shorter list, but quick to check.

Recents depends on Spotlight’s index. A file in a folder you excluded from Spotlight, or on a drive Spotlight does not index, will not show up there, so an empty result is not proof that the file does not exist.

Search for everything you changed today

When you cannot remember the name either, search by time instead.

  1. Open a Finder window and press Command-F.
  2. Click This Mac next to Search.
  3. Change the first criterion from Kind to Last modified date, and set it to “is today”.
  4. Click the plus button and add Kind is Document to cut out the noise.
  5. Switch to list view and click the Date Modified column to put the newest at the top.

Finder search skips system files by default, which includes the Library folder where some apps keep their documents. To include them, open the first criterion’s menu, choose Other, search for “System files”, tick it, and set it to “are included”.

From Terminal, this lists files in your home folder that changed today:

mdfind -onlyin ~ 'kMDItemFSContentChangeDate >= $time.today'

That uses the same Spotlight index. To bypass the index entirely and look at the disk itself, this lists files changed in the last hour, leaving out the Library folder:

find ~ -type f -mmin -60 -not -path '*/Library/*' 2>/dev/null

Searching a Mac from the Terminal with mdfind explains the query syntax if you want to go further.

Why files end up somewhere unexpected

Knowing the usual causes makes the next search shorter.

  • The Save dialog remembers the app’s last folder, not the folder you were just looking at in Finder. Save a file from TextEdit into Documents today, and next week TextEdit offers Documents again, whatever you were doing in between.
  • The compact Save dialog hides the folder. It shows only a Where menu, which is easy to skip past. Click the arrow button beside the file name field to expand it into a full browser.
  • iCloud Drive may be the default. If Desktop and Documents are stored in iCloud, or an app defaults to iCloud Drive, files land there. Look under iCloud Drive in the Finder sidebar. Save new documents to your Mac instead of iCloud by default covers changing that.
  • Some apps keep documents in their own container. Apps from the App Store in particular can store files inside a folder in your Library that Finder hides and Finder search skips by default. The “System files” criterion above reaches them.
  • Export is not Save. Exporting writes a copy, often to a different folder than the original, so the exported file and the original can be in two places.

When you remember the name but not the place

If any part of the name comes back to you, Spotlight is quicker than browsing. Press Command-Space, type the part you remember, select the result and press Command-Return to open the folder that contains it. Spotlight matches the start of words, so a fragment from the middle of a name may not match; finding a file when you only remember part of the name covers the workarounds, and when Spotlight cannot find a file you know exists covers the index itself.

Everywhere is built for this moment. It catalogs every file on the Mac once, then answers as you type, including in places Spotlight does not look, once you grant it Full Disk Access. Select the result and press Command-Return to reveal it in Finder, or Command-C to copy its full path. Add path: to limit the search to one folder. It searches names and paths, not what is inside files, so it helps when you remember any piece of the name, not a sentence from the document.

Stop it happening again

  • Expand the Save dialog once. It stays expanded afterwards, so you see the folder every time you save.
  • Put your working folders in the sidebar. Drag them into Finder’s sidebar Favorites; the same list appears in the expanded Save dialog, one click away.
  • Turn on the path bar. View > Show Path Bar in Finder shows the full folder chain for whatever you select. Show the full path in Finder covers it.
  • Name files so you can search for them. A date and a word you will remember beat “Untitled 3”.

Questions

The file is in Recents, but which folder is it in? Select it and press Command-R to open its enclosing folder, or turn on View > Show Path Bar and read the path at the bottom of the window.

I closed the document without saving. Is it anywhere? Many Apple apps save as you go. Reopen the app and check File > Open Recent. If iCloud Drive is on, untitled documents can also appear in that app’s folder inside iCloud Drive.

Why does a search for today’s files show hundreds of results? Apps change files in the background all day. Add Kind is Document, or search inside your home folder rather than This Mac, and the list shrinks to the things you made.