changing the browser used by rebol...
[1/6] from: moliad:gm:ail at: 17-Mar-2008 1:45
hello world,
I am stumped. rebol does not use the default browser set in windows vista.
I use firefox almost exclusively (using IE only to test compatibility) but
rebol 2.7.5 won't use it. it always starts up IE, even if a firefox is
running. :-(
so, since set-browser-path was removed (probably as it allowed us to use
CALL indirectly...) does anyone know how I can force rebol into using
firefox?
is there a registry key (maybe deprecated within vista) which rebol looks
up, or a hacked up way to force it within rebol itself?
TIA!
-MAx
[2/6] from: nick1:musiclessonz at: 16-Mar-2008 23:07
Hi Max,
I use Opera, and just did this in a script, without any problems
(using rebol.exe 2.76):
call rejoin ["C:\Program Files\Opera\Opera.exe" " http://yahoo.com"]
Quoting Maxim Olivier-Adlhoch <moliad-gmail.com>:
[3/6] from: nick1:musiclessonz at: 16-Mar-2008 23:20
if exists? to-rebol-file "C:\Program Files\Opera\Opera.exe" [
browse: func [a-url] [
call rejoin ["C:\Program Files\Opera\Opera.exe " (to-string a-url)]
]
]
Quoting Nick Antonaccio <nick1-musiclessonz.com>:
[4/6] from: moliad:gmai:l 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:
[5/6] from: philippe::garri::gpn::fr at: 17-Mar-2008 10:58
=?ISO-8859-1?Q?R=E9f.?= : Re: changing the browser used by rebol...
The FindExecutable function in the Windows Shell32.dll is in charge of
finding the path of an executable associated to a file extension.
The file provided as argument must exist.
[6/6] from: moliad::gmail::com at: 17-Mar-2008 6:27
Re: =?ISO-8859-1?Q?R=E9f.?= : Re: changin g the browser used by rebol...
thanks!
-MAx
On Mon, Mar 17, 2008 at 5:58 AM, Philippe GARRI <philippe.garri-gpn.fr>
wrote: