Thanks for the reply, and advice about open panel and security scoped bookmark. I am keen to try it out and see if those suggestions work.
What are you trying to do and how is the sandbox interfering with it?
I want to either organize in place (move and rename) files and folders under a particular directory tree. Probably a sub-folder or the users home. ~/somedir/ with access to all of the subdir items without needing to add those individually. Or scan ~/somedir/ and import to another folder tree ~/outputdir. It could be an external volume ssd.
Sandbox by default wouldn't allow that using nsfilemanager iterators after the SwiftUI folder selection dialogue.
With sandbox enabled I have to copy everything under "Downloads" and run the code. Not ideal, so I set entitlements to not sandboxed and put in lots of checks for system folders etc to lock it down.
Hoping to come up with a flexible solution that can be released to the app store.
Topic:
App & System Services
SubTopic:
Core OS
Tags: