Hi,
I have developed a Shortcuts action for the new Shortcuts of macOS 12. I've created a custom intent and an Intents extension. My action receives one or more files as input. The file type has been set to a custom UTI com.adobe.pdf. However the files cannot be opened. I can see in the Console that Sandbox denies the access.
If I handle the intent directly in my main app with func application(_ application: NSApplication, handlerFor intent: INIntent) -> Any?
I can only open files that have been opened by the main app before. If I handle the intent in an app extension I can't open any file at all. Both the main app and the extension are sandboxed with com.apple.security.files.user-selected.read-only
set to 1
. My app is singed with my valid developer ID.
The example Shortcut workflow I've build simply receives PDFs as an input and is set-up to work as a Quick Action. But no matter which Shortcut configuration I choose, it does not seem to make a difference.
Interestingly everything works as expected if I set com.apple.security.files.downloads.read-write
to 1.
Of cause that only works with the Downloads folder.
My question: How do I have to configure my app and/or app extension in order to work with files that have been opened in Shortcuts and given to my Shortcut action as an input parameter.
Cheers and thanks for your help