how modify "file attributes" ?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Jean-marc Radigois
Posts: 10
Joined: Mon Aug 26, 2013 6:49 pm

how modify "file attributes" ?

Post by Jean-marc Radigois »

The file attributes may be read with "the detailed files". Is there a way to modify these attributes ? I would like to controle permissions and creation dates.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: how modify "file attributes" ?

Post by Klaus »

Bonjour Jean-Marc,

you cannot do this directly in LC but via SHELL() commands.
...
## Mac & Linux:
get shell("chmod 777" && QUOTE & "path to/your/file.whatever" & QUOTE)
...
Not sure this is the corect syntax, but you get the picture :D


Best

Klaus
Jean-marc Radigois
Posts: 10
Joined: Mon Aug 26, 2013 6:49 pm

Re: how modify "file attributes" ?

Post by Jean-marc Radigois »

Hi Klaus,
Doing so via SHELL is not very fun because of the number and evolution of OS.
I was hoping there is a hiden solution in LC.
Thanks for your quick answer
best regards
jean-marc
Post Reply