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

Brendan Simon (eTRIX) Brendan.Simon at eTRIX.com.au
Fri Jul 10 11:16:27 CEST 2009


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] = 'myapp
   sys.argv[1] = '-psn_0_22123800'


How can I my program read the _uri_ that caused the program to be invoked.

Thanks, Brendan.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Brendan_Simon.vcf
Type: text/x-vcard
Size: 267 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090710/efb0cabe/attachment.vcf>


More information about the Pythonmac-SIG mailing list