LC application running on lab computers
Peter Bogdanoff
bogdanoff at me.com
Thu Mar 28 02:57:32 EDT 2019
I see that error 13 is a permissions issue.
I’m looking at this page "How to enable the root user on your Mac or change your root password”
https://support.apple.com/en-us/HT204012
which I haven’t yet figured out…
So, I suppose, lab admins would have to enable root user to install my application?
Peter
> On Mar 27, 2019, at 11:45 PM, 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 <mailto: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?
>>
>> All file I/O is best accompanied with an error check. If that includes a call to sysError you'll see exactly what the OS is trying to tell you.
>>
>> create folder tURL
>> if the result is not empty then
>> answer the result &" ("& sysError() &")"
>> exit to top
>> end if
>>
>>
>> I'd wager permissions. /Library is a system folder. /Users/<username>/Library should be writable, though.
>>
>> --
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> ____________________________________________________________________
>> Ambassador at FourthWorld.com <mailto:Ambassador at FourthWorld.com> <mailto:Ambassador at FourthWorld.com <mailto:Ambassador at FourthWorld.com>> http://www.FourthWorld.com <http://www.fourthworld.com/> <http://www.fourthworld.com/ <http://www.fourthworld.com/>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com> <mailto:use-livecode at lists.runrev.com <mailto: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 <http://lists.runrev.com/mailman/listinfo/use-livecode> <http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto: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 <http://lists.runrev.com/mailman/listinfo/use-livecode>
More information about the use-livecode
mailing list