Re: [F-Script-talk] FSInterpreterView execute
Brought to you by:
pmougin
From: Philippe M. <pm...@ac...> - 2008-06-22 08:40:45
|
Peter, This is fixed in the forthcoming alpha. You'll be able to use carriage return characters (i.e., ASCII code 13, specified using the \r escape sequence in string literals) to emulate a user pressing the Return key . Philippe Le 14 juin 08 à 13:29, Peter A Passaro a écrit : > > Hi Philippe and Co, > > I'm currently integrating F-Script into my time series analysis > software and I am wondering about how to use FSInterpreterView > properly. What I would like to do is execute commands that I have sent > to FSInterpreterView via the -putCommand method. Specifically, what I > would like is a convenience method similar to the ShellView method - > executeCurrentComand that is accessible from FSInterpreterView. > > Should I go ahead and write my own convenience methods by altering > CLIview and ShellView as necessary? Or is there just a much simpler > way to do this that I am missing? My intention here is to go through a > number of processing steps automatically, and let the user observe > what is happening. I could just use the FSInterpreter directly and > return its results, but I still need a way to get the user back to the > command prompt (possibly by faking a RETURN keyDown event to the > view). > > By the way, f-script is an absolutely brilliant package - it is > fantastic that this is available and completely open source. I have > been using it heavily for about two weeks, and have found myself > starting to rely on it for my Cocoa dev. I'm trying to put together an > intuitive system for academics (mostly neuroscientists) for analyzing > and simulating time series data, and I wanted to include a scripting > language. The APL + Cocoa style syntax is exactly what I needed. I > have been using the GNU scientific library for fast vector processing > and math functions, so I'm now looking at ways of using the best > features of both the GSL and f-script together. > > Peter Passaro > Research Officer > Dept of Informatics/Dept of Biology > Pevensey III > University of Sussex > Falmer, Brighton BN1 9QH, UK > Office + 44 (0)1273 877590 > P.A...@su... |