RE: Command execution ala Director's message window
RE: Command execution ala Director's message window
- Subject: RE: Command execution ala Director's message window
- From: Jon Pugh <email@hidden>
- Date: Mon, 24 Sep 2001 20:54:18 -0700
At 4:58 PM -0700 9/24/2001, Zavatone, Alex wrote:
>
Yup. With a focus. As in take this string, compile it and direct its
>
execution to the front most script window.
>
>
Any pointers?
There's no way to get text into the Script Editor's window besides the user typing or pasting.
If you had a scriptable script editor then you could do something like what you are describing, but I'm not even sure you are sure what you are describing. (Did I describe that well?)
It sounds almost like you are talking about CLImax, an attempt at a floating command line window. It kept the "context" which is an AppleScript concept that hasn't made a lot of appearances over the years. Basically a context contains all the handlers and variables that are in use. An open script file corresponds nicely to a context. CLImax let you keep a running context, which turns out to be very nice because you can define variables and reuse them later. You could assign object specifiers to variables and use them over and over again.
You could use a variety of scriptable applications, like MessageWindow or Scriptable Text Editor, to display output like file listings and stuff.
I belive the author was in college when he wrote it. His email address is gone and he grew dissatisfied with the slow pace of AppleScript improvements. I think he found a crashing bug that he couldn't prevent, but it's been 5 years since he's touched it.
Nevertheless, it was a cool concept that I wish the author was still supporting. Of course, now the concept should be the AppleScript shell on OS X.
Jon