Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Stefan Holmer
The icon does highlight when I drag a jpg-file over it. And it works fine just dragging a jpg-file to the dock-icon when the program has been started, but if the program has not been started it doesn't work. This is really bugging me, can't understand what makes the difference... has skrev: > S

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread has
Stefan Holmer wrote: > So, I've rewritten using aemreceive.sfba instead, though I've still > got the problem where I'm not caching an event when I'm trying to > "open with..." when the program is closed. I think LaunchServices can sometimes be a bit sluggish registering new apps. Also, have

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Ronald Oussoren
On Jul 15, 2006, at 6:31 PM, Bob Ippolito wrote: > > On Jul 15, 2006, at 4:42 AM, has wrote: > >> Stefan Holmer wrote: >> >>> Ok, well, then I'm pretty sure I'm actually using 2.4.3. >> >> I sent Ronald a patch for argvemulator in May. I believe it's in the >> 2.5 beta; I don't know if it's been

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Bob Ippolito
On Jul 15, 2006, at 4:42 AM, has wrote: > Stefan Holmer wrote: > >> Ok, well, then I'm pretty sure I'm actually using 2.4.3. > > I sent Ronald a patch for argvemulator in May. I believe it's in the > 2.5 beta; I don't know if it's been applied to any 2.4.x releases > yet; you'd need to ask. Wher

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Stefan Holmer
So, I've rewritten using aemreceive.sfba instead, though I've still got the problem where I'm not caching an event when I'm trying to "open with..." when the program is closed. If the program has already been started, this works fine. This is the line which installs the eventhandler: installeve

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Ronald Oussoren
On Jul 15, 2006, at 1:42 PM, has wrote: > Stefan Holmer wrote: > >> Ok, well, then I'm pretty sure I'm actually using 2.4.3. > > I sent Ronald a patch for argvemulator in May. I believe it's in the > 2.5 beta; I don't know if it's been applied to any 2.4.x releases > yet; you'd need to ask. It's

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread has
Stefan Holmer wrote: > Ok, well, then I'm pretty sure I'm actually using 2.4.3. I sent Ronald a patch for argvemulator in May. I believe it's in the 2.5 beta; I don't know if it's been applied to any 2.4.x releases yet; you'd need to ask. All the other AE modules except Carbon.AE are complet

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Stefan Holmer
Ok, well, then I'm pretty sure I'm actually using 2.4.3. Bob Ippolito skrev: > You definitely DO NOT want to uninstall 2.3. > > The quickest way to figure out which Python installation you're using > is to start python and see what it says. Perhaps you should look into > it... maybe even re-inst

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Bob Ippolito
You definitely DO NOT want to uninstall 2.3. The quickest way to figure out which Python installation you're using is to start python and see what it says. Perhaps you should look into it... maybe even re-install universal python 2.4.3 to make sure. -bob On Jul 15, 2006, at 1:54 AM, Stefan H

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-15 Thread Stefan Holmer
As far as I know, I am using Python 2.4.3. Maybe 2.3 hasn't been uninstalled? Bob Ippolito skrev: > 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 > >

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-14 Thread Bob Ippolito
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. W

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-14 Thread Stefan Holmer
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

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-14 Thread Stefan Holmer
Nicholas, I feel pretty stupid, but I actually can't find any information in the appscript documentation about how to listen for and bind a function to an apple event? Can you enlighten me a bit? Nicholas Riley skrev: > On Fri, Jul 14, 2006 at 08:43:53PM +0200, Stefan Holmer wrote: > >> I'm w

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-14 Thread Nicholas Riley
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://freespa

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-14 Thread Stefan Holmer
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. Although, I noticed that I had to change the code "aevt" to "tvea" and "oapp" to "codo", don't know why though? Have these

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-14 Thread Bob Ippolito
On Jul 14, 2006, at 1:51 AM, Stefan Holmer wrote: > I'm trying to open pictures with my program using right click and > "Open > with...". It works when the program is already started, but when the > program gets started with the "Open with..." I don't receive an Action > Event at all it seems.