views:

146

answers:

1

I'd like to register a protocol handler, like "myapp:", across OS X, Linux, and Windows, so that when someone clicks a url like "myapp://some/params" in a web browser, a python script will be called and passed in those params.

Obviously this would require something being installed on each machine to enable it, but just trying to figure out a way to make it work on all three platforms.

+1  A: 

Are you talking about a browser plug-in? If so, which browsers?

Firefox? https://addons.mozilla.org/en-US/firefox/addon/6710

Epiphany? http://pyconuk.org/talk_abstracts.html has a reference to extending Epiphany with Python.

Apparently, Microsoft is considering IronPython as an extension to IE. See http://ironpython-urls.blogspot.com/2008/06/try-python-python-in-browser-with.html

S.Lott
I'm thinking a system level protocol handler (like "mailto" or "aim"). The goal is to call an external python script when that url is clicked, like your mail program opens a mailto.
Isaac Reuben