Can LiveCode set file permissions?

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Verymuch
Posts: 12
Joined: Sat Oct 30, 2021 1:33 pm

Can LiveCode set file permissions?

Post 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
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can LiveCode set file permissions?

Post by Klaus »

Sorry, no build-in command, you need to use SHELL.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Can LiveCode set file permissions?

Post 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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Verymuch
Posts: 12
Joined: Sat Oct 30, 2021 1:33 pm

Re: Can LiveCode set file permissions?

Post by Verymuch »

Thank you, Klaus and Richard.
I will use LiveCode's shell function.
Post Reply