This post was written as part of the Kiroween 2026 hackathon (Resurrection category), for my entry PhantomTrace.
You finish a copy, you need the drive on another machine, and you drag it to the trash. Finder answers:
The disk wasn't ejected because one or more programs may be using it.
That is the whole message. It does not say which program, or which file.
I hit this constantly. At any moment I have several terminals open, a couple of editors, a coding agent or two, a preview app, a backup tool. Somewhere in that pile, one thing has a file open on the drive, or a shell is sitting in a folder on it. Finder will not tell me which. Quitting everything is not an option, because each of those apps holds work I have not saved or a session I would have to rebuild. So a five-second job (unplug the drive, use it elsewhere) turns into a hunt.
The usual workarounds all have a cost
Quit apps one by one until Eject works.…