Hi everyone,
I'm a new to LiveCode, and i try to build a little app for OSX, based on terminal commands.
I try to create a "purge" script, but i don't know very well the language.
On Terminal, the command is simple: purge (What else ?)
But on LiveCode, i create a button, with this code:
on mouseUp
shell("purge")
set the shellCommand to "purge"
end mouseUp
I try two shell commands, but does not work.
Thanks you in advance for you help.
use of terminal commands OSX
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: use of terminal commands OSX
Hi kevinPy,
I don't use shell but i know
works
I hope this help
Best regards
Jean-Marc
I don't use shell but i know
Code: Select all
get shell("say" && "Welcome in this forum Kevin")
I hope this help
Best regards
Jean-Marc
https://alternatic.ch
Re: use of terminal commands OSX
thanks, it works.
Re: use of terminal commands OSX
Hi Kevin,
yes, Jean-Marc is right, SHELL() is a function so you need to:
1. GET shell("...")
## now IT contains the returned value, if any...
or
2. PUT shell("...") into Some_Var
Best
Klaus
yes, Jean-Marc is right, SHELL() is a function so you need to:
1. GET shell("...")
## now IT contains the returned value, if any...
or
2. PUT shell("...") into Some_Var

Best
Klaus
Re: use of terminal commands OSX
OK, I understand. Since I participated in the financing Kickstarter, I have access to tutorials, and I think I make a day or two discovery software.