Re: [Pythonmac-SIG] Calling python application from AppScript

2005-11-15 Thread has
David Person wrote: >When I use this applescript, it works: > > tell application a > set r to processEvent("system", "start") > end tell > >...but when I try from another python application I get an error: > >from appscript import * >ap=app('pc-av') >ap.processEvent('syst

[Pythonmac-SIG] Calling python application from AppScript

2005-11-14 Thread David Person
Hello: I'm sure there must be a simple answer, but I'm flummoxed trying to send an AppleEvent from one python program to another. The 'server' program has this code: class avServer(AEServer, MiniApplication): def __init__(self): MiniApplication.__init__(self) AEServer.__init__(sel