I noticed that the Capture app on Macos does not use the standard file handling. It should be that an open file is tied to the file and not its path. This means that when you move a file even when it is open, the app is able to seamlessly follow that file, wherever it goes.
Even better, on top of this, Apple’s frameworks let apps be told when something moves. An app registers as a “file presenter” for a document. When another process moves or renames the file through a file coordinator (as the Finder does), the system calls the presentedItemDidMove(to:) method for any of the item’s file presenters. If a whole folder moves, the presenters of the files inside it are notified too. This is why a document window’s title and path update right away when you move or rename the file in the Finder.
There is also a special way that bookmarks and aliasses are treated. This means that when a file gets moved or renamed, the app is notified, so it can adjust it Recently opened items list accordingly.
In Capture this all does not work. Is it possible to make it behave a bit more mac-like in that sense?