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 » Wed Mar 08, 2017 10:26 am

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

Re: how modify "file attributes" ?

Post by Klaus » Wed Mar 08, 2017 11:37 am

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 » Wed Mar 08, 2017 2:39 pm

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

Return to “Talking LiveCode”