Monday, November 08, 2010 at 12:06 AM.
system.verbs.builtins.webBrowser.protocols.handleURL
on handleURL (url) { local (s = string.nthField (url, ':', 1)); <<something like ftp, usrtlk local (adrhandler = @webBrowser.protocols.activehandlers.[s]); if defined (adrhandler^) and (typeOf (adrhandler^) == scriptType) { return (adrhandler^ (url))} else { <<automatically 'unregister' unrecognized protocols webBrowser.unregisterProtocol (Frontier.id, s); return (false)}}; <<we didn't handle the tag bundle { <<test code handleURL ("usrtlk:dialog.alert(clock.now())"); handleURL ("mailto:bozo@clown.com"); handleURL (“ascpt:tell%20application%20%22Netscape%201.1N%22%20to%20display%20dialog%20%22Hello%20World!%22”); handleURL (“usrtlk:dialog.alert ("Greetings!")”)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.