LC application running on lab computers

Peter Bogdanoff bogdanoff at me.com
Fri Mar 29 01:38:28 EDT 2019


Yes, I see that the /Library requires elevated permission which is way beyond me.

Terry, it does look like I could write to the temporary folder, but I read that that folder may get cleared on restart. However, the Users/Shared folder seems available, so Bob and Richmond seem to be right. This works:

put specialFolderpath("usrs") & "/Shared/ArtsInteractive" into tURL

I’ll work with that.

Peter

> On Mar 28, 2019, at 8:19 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Any user has write permissions to the users/<username>/library folder. No one, even administrators has write permissions to the /library folder. You would need to elevate the process somehow. That has come up before, and I am not sure what came of it. There is a shared folder that all users have write access to, but this is not the typical place to put prefs files. 
> 
> Bob S
> 
> 
>> On Mar 27, 2019, at 23:45 , Peter Bogdanoff via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> I get "can't create that directory (13)”
>> 
>> The challenge is to write a pref file to a non-user directory so the file is available to all users in a lab setting.
>> 
>> Peter
>> 
>>> On Mar 27, 2019, at 11:36 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> Peter Bogdanoff wrote:
>>> 
>>>> In attempting to create this folder in MacOS:
>>>> 
>>>> put specialFolderpath("asup") & “/My Folder" into tURL
>>>> 
>>>>    [which yields tURL: /Library/Application Support/My Folder ]
>>>> 
>>>> create folder tURL
>>>> 
>>>>    returns a result: can't create that directory
>>>> 
>>>> 
>>>> Why the error?
>> 
> 
> _______________________________________________
> 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