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
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi there,
it looks like if you post a feedback id like FB1234567, a link will be crated automatically: (https://feedbackassistant.apple.com/feedback/1234567)
That's great, however it doesn't seem to work for ids with higher numbers as you can see with this example: FB12345678
New bug reports will get ids over 12,000,000 (8 digits)
Cheers
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
Forums Feedback
Feedback Assistant