Re: Writing to Mac Support folder

2023-07-03 Thread J. Landman Gay via use-livecode
On 6/30/23 1:32 AM, matthias rebbe via use-livecode wrote: This is what Apple says: "If you distribute your macOS app through the App Store, you must enable App Sandbox. If you notarize your macOS app to distribute it outside of the App Store, you must enable hardened runtime and, optionally,

Re: Writing to Mac Support folder

2023-06-30 Thread J. Landman Gay via use-livecode
It's an automatic response from the OS when an app needs to to do something that requires user permissions, like accessing files outside the app bundle. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On June 30, 2023 1:51:18 AM Richmond Ma

Re: Writing to Mac Support folder

2023-06-30 Thread J. Landman Gay via use-livecode
I have several testers and only one has the problem. He's running Mac Ventura, but so are a couple of others. The app is signed and notarized using your wonderful tool. Normally the Mac asks if the app can write files to disk and directs the user to system prefs / privacy and security so the us

Re: Writing to Mac Support folder

2023-06-29 Thread Richmond Mathewson via use-livecode
When I download an app onto my Mac Mini, on opening it for the first time it often asks me for permission to access the desktop/document/whatever folder. I assume that code to make an app ask for permissions to be granted has to be entered somewhere ['preOpenStack' ???] by the developer. On Fri,

Re: Writing to Mac Support folder

2023-06-29 Thread matthias rebbe via use-livecode
This is what Apple says: "If you distribute your macOS app through the App Store, you must enable App Sandbox. If you notarize your macOS app to distribute it outside of the App Store, you must enable hardened runtime and, optionally, can also enable App Sandbox." https://help.apple.com/xcode/m

Re: Writing to Mac Support folder

2023-06-29 Thread J. Landman Gay via use-livecode
I should have been more clear that this was for an app, sorry about that. I can create the file too on my own drive. The problem is with a built app on someone else's drive. OS permissions normally forbid any file or folder creation outside the app bundle. I'm not sure if I need to sandbox the

Re: Writing to Mac Support folder

2023-06-29 Thread Bob Sneidar via use-livecode
Not sure if this helps: I just put this in the message box in the IDE and hit enter, and it created the folder successfully. I don’t remember ever specifically allowing LC to do that, but then I think I have given LC permissions to modify files on the OS drive. put "~/Library/Application Suppo

Writing to Mac Support folder

2023-06-29 Thread J. Landman Gay via use-livecode
Short version: how do I bypass Gatekeeper to write a prefs file? I need to save a file in ~/Library/Application Support/myAppFolder/. Am I correct that I need to sandbox the app before I can write a file there? I read an LC lesson that said no special entitlements are required to create an app