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 » Wed Oct 19, 2022 11:48 am

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Can LiveCode set file permissions?

Post by Klaus » Wed Oct 19, 2022 12:17 pm

Sorry, no build-in command, you need to use SHELL.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Can LiveCode set file permissions?

Post by FourthWorld » Wed Oct 19, 2022 4:16 pm

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 » Wed Oct 19, 2022 4:29 pm

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

Post Reply

Return to “Mac OS”