Storing prefs files has all ways been a pain for me. I find a place that works 
on one machine/setup only to find it fails on another. The solution that worked 
for me relied on the fact that we had shared network drives. I basically 
created a "hidden" folder/directory with read/write permissions for all system 
users and stashed the prefs file there.

Users without access to the shared folder, couldn't use certain features that 
required info from the prefs file. A simple check if the file exists on opening 
let me limit functionality for them.

So... If you have access to something like that, I'd recommend not trying to 
solve the local prefs storage thing.

J

Sent from my iPad

> On Mar 28, 2019, at 10:38 PM, Peter Bogdanoff via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> 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@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@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@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@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to