brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Spotlight doesn't look inside zip files, so open the archive first

Spotlight
~/tips/tip-spotlight-archives-open-first

double-click backup-2025.zip unpacks it next to the zip

Find a file packed in a zip or disk image by opening the archive before you search.

You know the file is on your Mac, you even remember the name, and Spotlight finds nothing. If it’s packed in a zip or a disk image, that’s expected.

Apple’s page on unexpected search results covers this case: to find a file in an archive, such as a disk image or a zip file, double-click the archive to open it, then search again.

double-click backup-2025.zip     unpacks it next to the zip
double-click installer.dmg       mounts it as a volume
Command-Space, search again

A zip unpacks into a normal folder, which Spotlight then indexes like any other. A disk image shows up as a volume, and its files become searchable while it’s mounted.

This explains a common confusion with old project archives and exported backups. The zip itself shows up in a search by its own name, but the documents inside it don’t, so a search for a file name inside the archive comes back empty.

If you keep archives on purpose, I’d give them names that describe what’s inside, like tax-2025-receipts.zip, so a search for the archive itself gets you close.

Indexing an unpacked folder can take a moment, especially a big one, so the first search right after unpacking may still miss things. Apple also mentions Time Machine: files that are only in a backup can be found with Spotlight together with Time Machine, not in a normal search. And when you’re done with an unpacked copy, delete it, or you’ll have the same files twice.

Further reading: If searching your Mac returns unexpected results (Apple)

More Spotlight tips mdimport -i ~/Documents/Invoices Command-2 Files Tab show the Quick Actions for that result "trip to Paris" Results from Apps / System / Clipboard: switch categories off All Spotlight tips (14) All topics

Link