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

[REBOL] Re: changing the browser used by rebol...

From: moliad:gma:il at: 17-Mar-2008 3:20

good one :-) it just needs a little bit of extension for browsing files: browser-app: "C:\Program Files\Mozilla Firefox\firefox.exe" if exists? to-rebol-file browser-app [ browse: func [url [file! url!]] [ if file? url [ url: replace/all rejoin [file:// to-local-file url] "\" "/" ] call rejoin [browser-app { "} to-string url {"}] ] ] Note the use of quotes around the url, in case the string has spaces, which will be handled by the dos shell and should generate just one argument to the application. this worked for me, for firefox anyways. thanks for your suggestion it prompted me into action, hehe... this was where I was headed. for my own needs, this is sufficient, but I was just wondering if there was an official way to do so, cause this might be part of a commercial application, eventually. -MAx On Mon, Mar 17, 2008 at 2:20 AM, Nick Antonaccio <nick1-musiclessonz.com> wrote: