Re: Creating 'read only' text files

2023-05-02 Thread doc hawk via use-livecode
And just to avoid the brainfreeeze that I’d probably absentmindedly implement: You have to create the file and do all of your writing, and then *change* the file to read only . . . Uihm, err, i never really make mistakes like that, or applying bus voltage to a whole bank of toggle switches, or

Re: Creating 'read only' text files

2023-05-02 Thread David Glasgow via use-livecode
Perfect. Thanks, Paul. > On 30 Apr 2023, at 1:43 pm, Paul Dupuis via use-livecode > wrote: > > I don't know of a Livecode syntax per se to do this (i.e some syntax like: > set the permissions of file tFile to read-only) > > You can do this in Livecode using the shell() function (see the

Re: Creating 'read only' text files

2023-04-30 Thread Paul Dupuis via use-livecode
I don't know of a Livecode syntax per se to do this (i.e some syntax like: set the permissions of file tFile to read-only) You can do this in Livecode using the shell() function (see the dictionary) to issue applicable mac or win command lines. For eample a Google search shows the command

Creating 'read only' text files

2023-04-30 Thread David V Glasgow via use-livecode
Hi folks, Really simple question that I can’t see having been asked before, so here goes… I have a stack that outputs small text files. Each includes a hash value referencing part of itself that can be checked subsequently, so any change to the text can be flagged. Is there a way I can