Q: Can RunRev send messages to the command line?

Jan Schenkel janschenkel at yahoo.com
Thu Jun 30 15:07:42 EDT 2005


--- Emilio Gagliardi <emilio at ualberta.ca> wrote:
> Greetings all,
> I need to perform math calculations outside of
> RunRev and I have  
> found a program that can operate from the command
> line.  is it  
> possible to send commands and or data to the command
> line?  The  
> program reads a data file and returns a set of
> values.  I haven't  
> read all the details yet, but I thought I'd see if
> it were even  
> possible to do this before proceeding down this
> path.
> 
> I think this involves AppleScript, is that correct? 
> Would anyone  
> know of a good example/reference to do this?
> 
> Many thanks,
> Emilio
> 

Hi Emilio,

There's no need for AppleScript -- take a look at the
'shell' function. It allows you to do calls like a
command line :
--
  put shell("netstat") into tNetStatResult
  answer tNetStatResult
--
Related items of interest: shellCommand and
hideConsoleWindows.

Hope this helped,

Jan Schenkel.

Quartam - Tools for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com



More information about the use-livecode mailing list