Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Ronald Oussoren
On 6-aug-2005, at 19:46, Kevin Dangoor wrote: > On 8/5/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > >> You may have to do that with a get URL apple event handler, see here: >> http://developer.apple.com/documentation/Cocoa/Conceptual/ >> Scriptability/Concepts/ScriptabilityOverview.html >> (you

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Ronald Oussoren
On 7-aug-2005, at 11:58, Ronald Oussoren wrote: > > Could you post your code? I've tried to avoid AppleScript related > code upto know and can't even manage to bring my application to the > front :-) Never mind, that was a typo in my code. Somehow the system didn't understand what an CFBun

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Kevin Dangoor
> $ open pydoc:///os.open > > This will open the pydoc for os.open in the applet. I guess a href="pydoc:///os.open"> in a HTML file will also work. Wow. That should be a great example for me! Thanks! > > The important issue that kept me guessing for a while is that the > AppleEvent is GURL

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Kevin Dangoor
On 8/7/05, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > > Here's the objC example from Apple's doc: > > [appleEventManager setEventHandler:self > > andSelector:@selector(handleGetURLEvent:withReplyEvent:) > > forEventClass:kAEInternetSuite andEventID:kAEISGetURL]; > > > > Here's my translation to P

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Bob Ippolito
On Aug 7, 2005, at 10:01 AM, Kevin Dangoor wrote: > On 8/7/05, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > >>> Here's the objC example from Apple's doc: >>> [appleEventManager setEventHandler:self >>> andSelector:@selector(handleGetURLEvent:withReplyEvent:) >>> forEventClass:kAEInternetSuite andE

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Kevin Dangoor
On 8/7/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > > I was confused by @selector(handleGetURLEvent:withReplyEvent:) and the > > error message I got when I tried my first intuition. My first attempt > > was to just pass my Python method, but that complained saying that SEL > > was expected instead