[PYTHONMAC-SIG] wanted: "Run Python" BBEdit extension
Jack Jansen
Jack.Jansen@cwi.nl
Mon, 16 Sep 1996 11:02:02 +0200
> At 9:49 AM 9/15/96, Joseph Strout wrote:
> [...] a BBEdit plug-in that adds a "Run as Chipmunk Basic"
> >command to the Extensions menu. You edit your source in BBEdit (Lite),
> >pick this off the menu, and poof! the Mac switches to Chipmunk Basic,
> >loads your code, and executes it.
>
> It should be very easy, I'll look into it, I've written a simple BBEdit
> extension before, and with AppleEvents, it should be a breeze, to speak
> with Jack. I already have a simple engine that lets you send python code to
> the interpreter via AE.
I have collected various parts you need for this (mainly a similar BBEdit
extension to run a MacPerl script), but I cannot interface it to the
interpreter at the moment. Or, more precise: I can get the appleevent to the
interpreter, but at the time the interpreter gets the event it will be
somewhere deep down in the stdio/sioux library doing a read from the console,
and I can't think of a good way to get control back to the interpreter in a
controlled way.
This will be fixed when (a) the IDE is finished (since then we'll control our
own eventloop) or (b) we have our own console module (since then we can signal
it to terminate the read). Both/either of these should happen fairly soon.
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
=================
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
=================