[Pythonmac-SIG] Plugin for MacPython1.5b3

Just van Rossum just@letterror.com
Tue, 14 Apr 1998 17:59:23 +0200


At 17:18 -0700 4/13/98, Jay Painter wrote:
>Here's a plugin which allows one to execute arbitrary applescript from
>python.  The compiled module is in Archive.bin.hqx (part of the attached
>tarball).
>
>It impliments three functions:
>
>CompileAndExecute(script): compiles and executes the given string as a
>applescript
>
>CompileAndSave(script, path): compiles and saves the applescript in the
>given path
>
>RunCompiledScript(path): runs the compiled applescript at the given path.

Cool! I'll check it out. One minor suggestion: since this is a mac based
forum, I think .tar.gz are not that appropriate: not all mac users have
tar/gzip utils. I'd suggest using StuffIt in the future.

>It seems to work fine, although it eats events.  I use it for controlling
>CodeWarrior from Python.  Let me know if you have any contibutions or
>suggestions -- I could use some ;)

Also cool. Jack's fullbuild.py script (in the source distr.) also controls
CW (using apple events), is there so much you can't do that way that forced
you to write this module??

Just