Granting folder access from sandboxed app without NSOpenPanel

Hey there!


This is my first post here and I'm also a complete beginner in app development. So please be patient. Maybe my question is etirely stupid but I am looking around since weeks and I could not really find a satisfying solution.


I'm fiddeling around with an app which needs folder access to the app's Application Scripts folderand another folder in the user's library. I kind of got this working with an NSOpenPanel. My problem here is that there are no other folders which the user could select and grant access, so I find it very confusing for the user if a finder window pops up. Instead I would like to show some sort of alert popup where the user gets notified that the app needs access to these specific folders. Therefore my question if there is a way of getting user permission other than through NSOpenPanel?
Thanks! Every hint appreciated!

Granting folder access from sandboxed app without NSOpenPanel
 
 
Q