[Pythonmac-SIG] Problem with open_app Action Event

Stefan Holmer stefan at feelthemachine.com
Sat Jul 15 01:15:02 CEST 2006


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.
>
>   


More information about the Pythonmac-SIG mailing list