[Pythonmac-SIG] AppleEvent examples
Schollnick, Benjamin
Benjamin.Schollnick@usa.xerox.com
Wed, 14 Aug 2002 07:44:37 -0400
| For really simple AppleScripting stuff, the OSAm module in
| :Mac:Contrib: is very handy since you can take ordinary AppleScript
| source and pass it to CompileAndExecute.
You can do this already?!?!?!?
I admit I didn't look into the OSAm module... (Or at least I don't
remember doing so)
But this defintely needs to be documented!!! I've been kind of looking
into doing something like this.......
Thanks Mark!
- Benjamin
-----Original Message-----
From: Mark Day [mailto:mday@mac.com]
Sent: Monday, August 12, 2002 3:56 PM
To: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] AppleEvent examples
On Monday, August 12, 2002, at 08:29 AM, Jack Jansen wrote:
> Do you think you could add something to the findertools module that
> uses objects? Because that's the bit that *I* wouldn't mind having a
> manual for, I always forget how to say "set font of word 2 of
> paragraph 3 of window "Foo" to "Times Roman"" in Python.
For really simple AppleScripting stuff, the OSAm module in
:Mac:Contrib: is very handy since you can take ordinary AppleScript
source and pass it to CompileAndExecute. For some uses, it may be
simpler to use Python to build up the AppleScript source on the fly and
then let AppleScript compile and execute the actual AppleEvents rather
than try to build up the AppleEvents inside Python.
-Mark
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig