Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
Cody Precord wrote: > Hello, > > On Jul 10, 2009, at 10:35 PM, Brendan Simon (eTRIX) wrote: > >> Brendan Simon (eTRIX) wrote: >> >> I registered the __geturl() event handler but it never gets called. >> >> How can I determine if the events are being sent to MyApp ?? >> I tried: >> $ expor

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Cody Precord
Hello, On Jul 10, 2009, at 10:35 PM, Brendan Simon (eTRIX) wrote: Brendan Simon (eTRIX) wrote: I registered the __geturl() event handler but it never gets called. How can I determine if the events are being sent to MyApp ?? I tried: $ export AEDebugSends=1; export AEDebugReceives=1 $ ope

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
Brendan Simon (eTRIX) wrote: >> I've no idea if there's anything you need to watch for when Apple events >> in a wxPython-based application, so you might need to do a bit of >> research on that front. The basic code for handling a GetURL event >> should go something like this: >> >> from Carbon imp

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
has wrote: > On 10 Jul 2009, at 14:45, Brendan Simon (eTRIX) wrote: > >> has wrote: >>> Brendan Simon (eTRIX) wrote: >>> I have an OS X python program that is invoked via a uri on a webpage -- eg. "myapp:command" [...] >>> You need to install an Apple event handler that responds to

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread has
On 10 Jul 2009, at 14:45, Brendan Simon (eTRIX) wrote: has wrote: Brendan Simon (eTRIX) wrote: I have an OS X python program that is invoked via a uri on a webpage -- eg. "myapp:command" [...] You need to install an Apple event handler that responds to the GetURL event. Various ways you

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Cody Precord
Hello, On Fri, Jul 10, 2009 at 8:45 AM, Brendan Simon (eTRIX) wrote: > has wrote: >> Brendan Simon (eTRIX) wrote: >> >>> I have an OS X python program that is invoked via a uri on a webpage -- >>> eg. "myapp:command" >>> >>> The app is invoked fine (via the plist), but I can't seem to extract the

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
has wrote: > Brendan Simon (eTRIX) wrote: > >> I have an OS X python program that is invoked via a uri on a webpage -- >> eg. "myapp:command" >> >> The app is invoked fine (via the plist), but I can't seem to extract the >> "command" from the system args. sys.argv contains the name of the >> appl

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread has
Brendan Simon (eTRIX) wrote: I have an OS X python program that is invoked via a uri on a webpage -- eg. "myapp:command" The app is invoked fine (via the plist), but I can't seem to extract the "command" from the system args. sys.argv contains the name of the application and some other va

[Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
I have an OS X python program that is invoked via a uri on a webpage -- eg. "myapp:command" The app is invoked fine (via the plist), but I can't seem to extract the "command" from the system args. sys.argv contains the name of the application and some other values. example: sys.argv[0] = 'myap