Hi,
I need advises on this problem I have.
I'm trying to get metadata info of files outside of the App's sandbox (on macOS).
The files paths come from the result of the execution of a user script installed by the application (on behalf of the user) in ~/Library/Application\ Scripts as instructed by the Sandboxing documentation related to AppleScripts execution. The script is triggered by the user using a global hot key.
However, MDItemCreateWithURL() returns nil for any file url (same for MDItemCreate()). In a not-sandboxed app it works fine.
This app is intended to be a tool which enhances the users' workflow. It is not bound to any particular directory or files. If I were to add security file exceptions in the Sandbox entitlements I would target the whole home user directory (recursively) but I don't think that would be valid and It would probably not survive the App validation process anyways.
Any advise is most welcomed!
Best regards,
Thierry