Page 1 of 1

Can LiveCode set file permissions?

Posted: Wed Oct 19, 2022 11:48 am
by Verymuch
Dear forum,

I need to give write access to a file, to all users of the Mac. I know this can be done using a shell command, but is there perhaps a built-in LiveCode function or command to do this?

Thank you

Re: Can LiveCode set file permissions?

Posted: Wed Oct 19, 2022 12:17 pm
by Klaus
Sorry, no build-in command, you need to use SHELL.

Re: Can LiveCode set file permissions?

Posted: Wed Oct 19, 2022 4:16 pm
by FourthWorld
To clarify, both are right: yes, a shell command is used to change file permissions, and yes, LC includes a function named "shell" to let you execute that from within LiveCode.

Re: Can LiveCode set file permissions?

Posted: Wed Oct 19, 2022 4:29 pm
by Verymuch
Thank you, Klaus and Richard.
I will use LiveCode's shell function.