shell command problem

Thierry 00bioarchimed at free.fr
Tue May 29 11:48:45 EDT 2007


Hi  Thomas ,

You have to read the result of the shell() function.

get shell(...) or
put shell(...) into x

HTH
Thierry

> Can someone guide me in the correct use of the shell command on OSX.
>
>
> I have tried to set the shellcommand to "/bin/ired" with no result.
>
> This is my script:
> ON mouseUp
>     put field "myControl2" into tControl
>     IF tControl is not "" THEN
>         put the shellcommand into tShellPath
>         set the shellcommand to "/bin/ired"
>         shell (field "myControl2")
>         -- put quote & "ired - send " & quote & "Robosapien V2" &  
> quote & " " & Quote & "D" & Quote into tred
>         -- shell (tred)
>         set the shellcommand to tShellPath
>     ELSE
>         revspeak "OH OH"
>     END IF
> END mouseUp
>




More information about the use-livecode mailing list