Command execution ala Director's message window
Command execution ala Director's message window
- Subject: Command execution ala Director's message window
- From: "Zavatone, Alex" <email@hidden>
- Date: Mon, 24 Sep 2001 13:28:57 -0700
In light of our recent usability and adoption of applescript discussion, I'm
REALLY interested in creating Director style message window functionality in
AScript.
I've already got message window style output pretty much done but what I'm
looking for advice is how to proceed on the input part of this.
See, Director allows the user to enter a a Lingo command in the message
window and it will be executed and applied to the movie.
For example, If I have a routine in my current director movie with a handler
called "InitGlobals" or "Main", I can test these commands without running
the movie. I can enter them in the message window and press return. They
will be compiled, executed ( within the context of being applied to the
currently loaded director file ) and the output dumped to the message
window.
I'd like to create a similar thing for AScript with the following changes:
Add a focus field or method to apply the commands being entered to the
frontmost open applescript doc.
So, if I entered "CreateTcpipConfig" in my message window, I'd like Ascript
to compile the line, execute it by doing a tell to the frontmost doc that is
currently open in the editor we are using.
Does this sound possible/doable?? If so, any advice on how to go about it??
Thanks in advance,
- Zav