Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] rebol protocol

From: bry:itnisk at: 12-Dec-2002 18:40

I don't know of how much interest the following will be to the list, if any, but I was thinking about it today: If you add the following to your windows registry: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\reb] @="\"URL:Reb Protocol\"" URL Protocol ="" [HKEY_CLASSES_ROOT\reb\shell] [HKEY_CLASSES_ROOT\reb\shell\open] [HKEY_CLASSES_ROOT\reb\shell\open\command] @="c:\\rebol\\view\\rebol.exe test.r %1" then whenever you run reb:c:\some.r from your address bar this would, if your rebol.exe was located at c:\rebol\view as mine is, load test.r into rebol.exe and pass it the commandline argument ["reb:c:\some.r"] I'm wondering what kind of cool things test.r could be made to do. Note that this will also take a "querystring" so that the following: reb:c:\some.r?mydoc=some.xml Will give you the following argument: ["reb:c:\some.r?mydoc=some.xml"] anyway I found it interesting, hoping someone else does and sparks some cool ideas (if this hasn't ever been discussed here before).