[Pythonmac-SIG] Problem with open_app Action Event

Bob Ippolito bob at redivi.com
Sat Jul 15 01:56:43 CEST 2006


Yes, Python 2.3 on Mac OS X 10.4 i386 is indeed broken for most  
things in Carbon.*, especially Apple Events. Use Universal Python 2.4.3.

http://pythonmac.org/packages/py24-fat/

-bob


On Jul 14, 2006, at 4:15 PM, Stefan Holmer wrote:

> I'm now trying to use argvemulator to collect the Event. When I set
> ArgvCollector to trig on 'odoc' it gives me some odd path inside my
> .app-directory. If I modify the code for ArgvCollector and make it
> trigger on 'odoc' and 'codo' I get my the correct path for the file  
> I'm
> trying to open, but when ArgvCollector.mainloop() is done, the whole
> program crashes without telling me why.
>
> First of all, why do I have to trig on 'codo'? Seems like all my event
> codes are reversed! Does it have something to do with different  
> endians
> on intel and ppc? If so, are there an intel compatible version of
> argvemulator?
>
> Stefan
>
> Nicholas Riley skrev:
>> On Fri, Jul 14, 2006 at 08:43:53PM +0200, Stefan Holmer wrote:
>>
>>> I'm writing the application in Python using the MiniAEFrame  
>>> module which
>>> comes with MacPython. I've built it mostly like the example test  
>>> class
>>> in MiniAEFrame named _Test.
>>>
>>
>> Try using aemreceive, part of appscript
>> (http://freespace.virgin.net/hamish.sanderson/appscript.html) instead
>> of MiniAEFrame - it's a much better version.
>>
>> A script I wrote using aemreceive is here:
>>
>> <http://dev.sabi.net/trac/dev/browser/trunk/RetroStatus/ 
>> RetroStatus.py>
>>
>> It's extremely special-purpose, but should give you some ideas.
>>
>> There are also some examples (and documentation) included with  
>> appscript.
>>
>>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig



More information about the Pythonmac-SIG mailing list