Writing to Mac Support folder

J. Landman Gay jacque at hyperactivesw.com
Thu Jun 29 18:36:15 EDT 2023


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 app or if there's an easier way. One tester had no 
trouble (the Mac asked for permissions) but another tester didn't get a notification and 
thought the app was broken.

On 6/29/23 4:36 PM, Bob Sneidar via use-livecode wrote:
> 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 Support/FormsGen" into tFoldername;create folder tFolderName
> 
> Bob S
> 
> 
>> On Jun 29, 2023, at 1:50 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> 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 folder and a file. I can't test it myself because I already have full access.
>>
>> If this is correct so far, then do I just need to provide the sandbox entitlement and nothing else?

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list