On Wed, May 28, 2008 at 6:34 AM, RevList <[EMAIL PROTECTED]> wrote:
> I am trying to write a GUI interface for an application that I run in
> Terminal.
>
> In Terminal, if I run
> /Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats
>
> I get the following returned
>  8.300 413.000 4.000 0.317 1.042 1366.000 100.000 129757.000 0.000
> 1497612288.000
>
>
> When I create a button with the following script in Rev
> On MouseUp
>  put Shell("/Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats") into
> tShellCommand
>  put Shell(tShellCommand) into tFilesList
>  answer tFilesList
> End MouseUp
>
> I get this returned
> /bin/sh: line 1:8300: command not found
>

The first line is executing the shell command.
Then the second line is trying the execute the command:
   Shell("/Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats")
which is a valid Rev command, but not a valid shell command.

Try this:

on MouseUp
  put "/Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats" into tShellCommand
  put Shell(tShellCommand) into tFilesList
  answer tFilesList
end MouseUp

Cheers,
Sarah
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to