[Pythonmac-SIG] Python app with aemreceive is not scriptable

Kevin Walzer kw at codebykevin.com
Tue Jan 5 16:42:57 CET 2010


On 1/4/10 11:24 PM, Kevin Walzer wrote:
> On 1/4/10 8:18 AM, Kevin Walzer wrote:
>> On 1/4/10 6:37 AM, has wrote:

>
> This is very weird, and I have no clue how to untangle it. My app won't
> respond to Apple Events at all without a valid sdef file in the bundle's
> Resources directory. However, if the sdef is present, the commands and
> Apple Events defined there are ignored and are instead handled by the
> Tcl/Tk interpreter and its sdef instead. To avoid this conflict, I've
> tried removing the Tk sdef file, and changing the Apple Event class/ID
> of my Python event to something else, but these have no effect.

I tried again with a different eight-letter constant for my Apple Event 
and now it's being fed to Python instead of Tk. I still have some work 
to do, but at least I'm not stuck at this point anymore...

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com


More information about the Pythonmac-SIG mailing list