Writing to Mac Support folder

Bob Sneidar bobsneidar at iotecdigital.com
Thu Jun 29 17:36:25 EDT 2023


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
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list