Re: LC application running on lab computers

2019-03-29 Thread Consensus IMAP via use-livecode
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 
>  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 
>>  wrote:
>> 
>> Any user has write permissions to the users//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 
>>>  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 
  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

Re: LC application running on lab computers

2019-03-28 Thread Peter Bogdanoff via use-livecode
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 
>  wrote:
> 
> Any user has write permissions to the users//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 
>>  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 
>>>  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

Re: LC application running on lab computers

2019-03-28 Thread Bob Sneidar via use-livecode
Any user has write permissions to the users//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 
>  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 
>>  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

Re: LC application running on lab computers

2019-03-28 Thread Richmond via use-livecode

I don't know much about Windows . . . but,

on Macintosh machines and PCs running Linux there is often a folder called
"Shared" or somesuch alongside all the user directories: might this not
be the place to write a pref file that is going to be shared by all users?

Richmond.

On 28.03.19 г. 8:45 ч., Peter Bogdanoff via use-livecode 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 
 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//Library 
should be writable, though.

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web

ambassa...@fourthworld.com 
http://www.FourthWorld.com 

___
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

Re: LC application running on lab computers

2019-03-28 Thread Terry Judd via use-livecode
How about specialFolderPath("temporary") ?

Terry...

On 28/3/19, 5:46 pm, "use-livecode on behalf of Peter Bogdanoff via 
use-livecode"  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 
 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//Library should be writable, though.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com 
http://www.FourthWorld.com 
> 
> ___
> 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

Re: LC application running on lab computers

2019-03-27 Thread Peter Bogdanoff via use-livecode
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 
>  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 
>> mailto: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?
>> 
>> 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//Library should be writable, though.
>> 
>> -- 
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.com  
>> >  
>>   http://www.FourthWorld.com  
>> >
>> 
>> ___
>> 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

Re: LC application running on lab computers

2019-03-27 Thread Peter Bogdanoff via use-livecode
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 
>  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//Library 
> should be writable, though.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com 
> http://www.FourthWorld.com 
> 
> ___
> 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

Re: LC application running on lab computers

2019-03-27 Thread Richard Gaskin via use-livecode

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//Library should be writable, though.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
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

Re: LC application running on lab computers

2019-03-27 Thread Peter Bogdanoff via use-livecode
I’m doing this on my own Mac, and I am an Admin.

Peter

> On Mar 27, 2019, at 11:29 PM, Phil Davis via use-livecode 
>  wrote:
> 
> Hi Peter,
> 
> Is it possible you're running LC in a user account that doesn't have "admin" 
> permissions? I suggest this because they are lab computers.
> 
> You can check Apple menu > System Preferences > Users & Groups > [username] 
> to find out.
> 
> Phil Davis
> 
> 
> On 3/27/19 11:20 PM, Peter Bogdanoff via use-livecode 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?
>> 
>> Peter
>> ArtsInteractive
>> 
>> 
>>> On Mar 27, 2019, at 2:38 PM, Peter Bogdanoff via use-livecode 
>>>  wrote:
>>> 
>>> Thanks all! I’ll check these out.
>>> 
>>> Peter
>>> 
>>> 
>>>> On Mar 27, 2019, at 2:28 PM, Ralph DiMola via use-livecode 
>>>>  wrote:
>>>> 
>>>> These are the public ones on Win 10:
>>>> 
>>>> 25 C:/Users/Public/Desktop
>>>> 46 C:/Users/Public/Documents
>>>> 53 C:/Users/Public/Music
>>>> 54 C:/Users/Public/Pictures
>>>> 55 C:/Users/Public/Videos
>>>> 
>>>> Used this in the message box:
>>>> 
>>>> put empty into msg;repeat with i = 1 to 100;if specialFolderPath(i) 
>>>> contains "public" then put i&&specialFolderPath(i) &cr after msg;end repeat
>>>> 
>>>> Ralph DiMola
>>>> IT Director
>>>> Evergreen Information Services
>>>> rdim...@evergreeninfo.net
>>>> 
>>>> -Original Message-
>>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
>>>> Behalf Of Klaus major-k via use-livecode
>>>> Sent: Wednesday, March 27, 2019 5:04 PM
>>>> To: How to use LiveCode
>>>> Cc: Klaus major-k
>>>> Subject: Re: LC application running on lab computers
>>>> 
>>>> Hi Peter,
>>>> 
>>>>> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
>>>>> :
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> My application is being installed on Windows machines in a school lab. 
>>>>> The admin is having trouble because I’m writing preference files to the 
>>>>> Users\\ folder and when another user logs in, the file is not 
>>>>> available. This may be a problem in the future for Macs as well. These 
>>>>> same preference files should be accessed by all users.
>>>>> 
>>>>> The specialFolderPath functions don’t seem to have one for a root level 
>>>>> Library/Preferences folder. Is there otherwise a best, or even workable 
>>>>> practice for this scenario?
>>>> you could use these 2 undocumented specialfolderpath() codes for Windows:
>>>> -> specialFolderPath(35) -> prefs folder for ALL users
>>>> -> specialfolderpath(26) -> dito for the current user only!
>>>> 
>>>> Not sure this is still working on Win 10, but worth a try. :-) Check this 
>>>> in the IDE with the messagebox:
>>>> put specialFolderPath(35)
>>>> 
>>>>> Peter Bogdanoff
>>>>> ArtsInteractive
>>>> Best
>>>> 
>>>> Klaus
>>>> 
>>>> --
>>>> Klaus Major
>>>> http://www.major-k.de
>>>> kl...@major-k.de
>>>> 
>>>> 
>>>> ___
>>>> 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
>> 
>> ___
>> 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
> 
> -- 
> Phil Davis
> 
> 
> ___
> 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

Re: LC application running on lab computers

2019-03-27 Thread Phil Davis via use-livecode

Hi Peter,

Is it possible you're running LC in a user account that doesn't have 
"admin" permissions? I suggest this because they are lab computers.


You can check Apple menu > System Preferences > Users & Groups > 
[username] to find out.


Phil Davis


On 3/27/19 11:20 PM, Peter Bogdanoff via use-livecode 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?

Peter
ArtsInteractive



On Mar 27, 2019, at 2:38 PM, Peter Bogdanoff via use-livecode 
 wrote:

Thanks all! I’ll check these out.

Peter



On Mar 27, 2019, at 2:28 PM, Ralph DiMola via use-livecode 
 wrote:

These are the public ones on Win 10:

25 C:/Users/Public/Desktop
46 C:/Users/Public/Documents
53 C:/Users/Public/Music
54 C:/Users/Public/Pictures
55 C:/Users/Public/Videos

Used this in the message box:

put empty into msg;repeat with i = 1 to 100;if specialFolderPath(i) contains "public" then 
put i&&specialFolderPath(i) &cr after msg;end repeat

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Klaus major-k via use-livecode
Sent: Wednesday, March 27, 2019 5:04 PM
To: How to use LiveCode
Cc: Klaus major-k
Subject: Re: LC application running on lab computers

Hi Peter,


Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
:

Hi,

My application is being installed on Windows machines in a school lab. The admin is 
having trouble because I’m writing preference files to the Users\\ folder 
and when another user logs in, the file is not available. This may be a problem in 
the future for Macs as well. These same preference files should be accessed by all 
users.

The specialFolderPath functions don’t seem to have one for a root level 
Library/Preferences folder. Is there otherwise a best, or even workable 
practice for this scenario?

you could use these 2 undocumented specialfolderpath() codes for Windows:
-> specialFolderPath(35) -> prefs folder for ALL users
-> specialfolderpath(26) -> dito for the current user only!

Not sure this is still working on Win 10, but worth a try. :-) Check this in 
the IDE with the messagebox:
put specialFolderPath(35)


Peter Bogdanoff
ArtsInteractive

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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


___
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


--
Phil Davis


___
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

Re: LC application running on lab computers

2019-03-27 Thread Peter Bogdanoff via use-livecode
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? 

Peter
ArtsInteractive


> On Mar 27, 2019, at 2:38 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Thanks all! I’ll check these out.
> 
> Peter
> 
> 
>> On Mar 27, 2019, at 2:28 PM, Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> These are the public ones on Win 10:
>> 
>> 25 C:/Users/Public/Desktop
>> 46 C:/Users/Public/Documents
>> 53 C:/Users/Public/Music
>> 54 C:/Users/Public/Pictures
>> 55 C:/Users/Public/Videos
>> 
>> Used this in the message box:
>> 
>> put empty into msg;repeat with i = 1 to 100;if specialFolderPath(i) contains 
>> "public" then put i&&specialFolderPath(i) &cr after msg;end repeat
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
>> Of Klaus major-k via use-livecode
>> Sent: Wednesday, March 27, 2019 5:04 PM
>> To: How to use LiveCode
>> Cc: Klaus major-k
>> Subject: Re: LC application running on lab computers
>> 
>> Hi Peter,
>> 
>>> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
>>> :
>>> 
>>> Hi,
>>> 
>>> My application is being installed on Windows machines in a school lab. The 
>>> admin is having trouble because I’m writing preference files to the 
>>> Users\\ folder and when another user logs in, the file is not 
>>> available. This may be a problem in the future for Macs as well. These same 
>>> preference files should be accessed by all users.
>>> 
>>> The specialFolderPath functions don’t seem to have one for a root level 
>>> Library/Preferences folder. Is there otherwise a best, or even workable 
>>> practice for this scenario?
>> 
>> you could use these 2 undocumented specialfolderpath() codes for Windows:
>> -> specialFolderPath(35) -> prefs folder for ALL users
>> -> specialfolderpath(26) -> dito for the current user only!
>> 
>> Not sure this is still working on Win 10, but worth a try. :-) Check this in 
>> the IDE with the messagebox:
>> put specialFolderPath(35)
>> 
>>> Peter Bogdanoff
>>> ArtsInteractive
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> http://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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


___
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

Re: LC application running on lab computers

2019-03-27 Thread Peter Bogdanoff via use-livecode
Thanks all! I’ll check these out.

Peter


> On Mar 27, 2019, at 2:28 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> These are the public ones on Win 10:
> 
> 25 C:/Users/Public/Desktop
> 46 C:/Users/Public/Documents
> 53 C:/Users/Public/Music
> 54 C:/Users/Public/Pictures
> 55 C:/Users/Public/Videos
> 
> Used this in the message box:
> 
> put empty into msg;repeat with i = 1 to 100;if specialFolderPath(i) contains 
> "public" then put i&&specialFolderPath(i) &cr after msg;end repeat
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Klaus major-k via use-livecode
> Sent: Wednesday, March 27, 2019 5:04 PM
> To: How to use LiveCode
> Cc: Klaus major-k
> Subject: Re: LC application running on lab computers
> 
> Hi Peter,
> 
>> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
>> :
>> 
>> Hi,
>> 
>> My application is being installed on Windows machines in a school lab. The 
>> admin is having trouble because I’m writing preference files to the 
>> Users\\ folder and when another user logs in, the file is not 
>> available. This may be a problem in the future for Macs as well. These same 
>> preference files should be accessed by all users.
>> 
>> The specialFolderPath functions don’t seem to have one for a root level 
>> Library/Preferences folder. Is there otherwise a best, or even workable 
>> practice for this scenario?
> 
> you could use these 2 undocumented specialfolderpath() codes for Windows:
> -> specialFolderPath(35) -> prefs folder for ALL users
> -> specialfolderpath(26) -> dito for the current user only!
> 
> Not sure this is still working on Win 10, but worth a try. :-) Check this in 
> the IDE with the messagebox:
> put specialFolderPath(35)
> 
>> Peter Bogdanoff
>> ArtsInteractive
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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

RE: LC application running on lab computers

2019-03-27 Thread Ralph DiMola via use-livecode
These are the public ones on Win 10:

25 C:/Users/Public/Desktop
46 C:/Users/Public/Documents
53 C:/Users/Public/Music
54 C:/Users/Public/Pictures
55 C:/Users/Public/Videos

Used this in the message box:

put empty into msg;repeat with i = 1 to 100;if specialFolderPath(i) contains 
"public" then put i&&specialFolderPath(i) &cr after msg;end repeat

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Klaus major-k via use-livecode
Sent: Wednesday, March 27, 2019 5:04 PM
To: How to use LiveCode
Cc: Klaus major-k
Subject: Re: LC application running on lab computers

Hi Peter,

> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
> :
> 
> Hi,
> 
> My application is being installed on Windows machines in a school lab. The 
> admin is having trouble because I’m writing preference files to the 
> Users\\ folder and when another user logs in, the file is not 
> available. This may be a problem in the future for Macs as well. These same 
> preference files should be accessed by all users.
> 
> The specialFolderPath functions don’t seem to have one for a root level 
> Library/Preferences folder. Is there otherwise a best, or even workable 
> practice for this scenario?

you could use these 2 undocumented specialfolderpath() codes for Windows:
-> specialFolderPath(35) -> prefs folder for ALL users
-> specialfolderpath(26) -> dito for the current user only!

Not sure this is still working on Win 10, but worth a try. :-) Check this in 
the IDE with the messagebox:
put specialFolderPath(35)

> Peter Bogdanoff
> ArtsInteractive

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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

Re: LC application running on lab computers

2019-03-27 Thread Klaus major-k via use-livecode
Hi Peter and all,

> Am 27.03.2019 um 22:04 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi Peter,
> 
>> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
>> :
>> 
>> Hi,
>> 
>> My application is being installed on Windows machines in a school lab. The 
>> admin is having trouble because I’m writing preference files to the 
>> Users\\ folder and when another user logs in, the file is not 
>> available. This may be a problem in the future for Macs as well. These same 
>> preference files should be accessed by all users.
>> 
>> The specialFolderPath functions don’t seem to have one for a root level 
>> Library/Preferences folder. Is there otherwise a best, or even workable 
>> practice for this scenario?
> you could use these 2 undocumented specialfolderpath() codes for Windows:
> -> specialFolderPath(35) -> prefs folder for ALL users
> -> specialfolderpath(26) -> dito for the current user only!

please check Ken Ray's wonderful page with more helpful specialfolderpath() 
codes:



Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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

Re: LC application running on lab computers

2019-03-27 Thread Klaus major-k via use-livecode
Hi Peter,

> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
> :
> 
> Hi,
> 
> My application is being installed on Windows machines in a school lab. The 
> admin is having trouble because I’m writing preference files to the 
> Users\\ folder and when another user logs in, the file is not 
> available. This may be a problem in the future for Macs as well. These same 
> preference files should be accessed by all users.
> 
> The specialFolderPath functions don’t seem to have one for a root level 
> Library/Preferences folder. Is there otherwise a best, or even workable 
> practice for this scenario?

you could use these 2 undocumented specialfolderpath() codes for Windows:
-> specialFolderPath(35) -> prefs folder for ALL users
-> specialfolderpath(26) -> dito for the current user only!

Not sure this is still working on Win 10, but worth a try. :-)
Check this in the IDE with the messagebox:
put specialFolderPath(35)

> Peter Bogdanoff
> ArtsInteractive

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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

LC application running on lab computers

2019-03-27 Thread Peter Bogdanoff via use-livecode
Hi,

My application is being installed on Windows machines in a school lab. The 
admin is having trouble because I’m writing preference files to the 
Users\\ folder and when another user logs in, the file is not available. 
This may be a problem in the future for Macs as well. These same preference 
files should be accessed by all users.

The specialFolderPath functions don’t seem to have one for a root level 
Library/Preferences folder. Is there otherwise a best, or even workable 
practice for this scenario?

Peter Bogdanoff
ArtsInteractive
___
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