I eventually raised a TSI for this, and Developer Technical Support indicated that I should file a bug with NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope “since it doesn’t behave as documented”. I've filed that as FB9631965.
In the mean-time, I've discovered that NSFilePresenter's documentation describes it as “The interface […] to inform an object […] about changes to that file”, and allows us to monitor imported directories for changes! 🎉
It does, however, have some decade-old bugs that mean the only subitem-related method that actually works consistently is presentedSubitemDidChange(at:). It's a bit of a blunt instrument, but it'll do for my use case.
Topic:
App & System Services
SubTopic:
General
Tags: