Discussion:
[Netsurf-develop] netsurf launching URL files
Stuart Halliday
2007-09-20 04:10:48 UTC
Permalink
Thanks for adding the ability to launch URL files. Much appreciated. :-)

I've got a wee app called !ieurl
!ieurl allows the uses of Internet Explorer URL files (Windows Favorites)
(filetyped B28) and when the user on a RISC OS machine double clicks on
them it passes the URI to a RISC OS browser to launch it.

It does this by rewriting
Alias$@RunType_B28

to
Set Alias$@RunType_B28 Run <ieurl$Dir>.!Run %%*0

and searches for a uri in the file.

This worked for Fresco.

But I couldn't get it to work with Netsurf (yes I know that Netsurf uses
the Acorn URI and Fresco doesn't).

Doesn't Netsurf just take the current Alias$@RunType_B28 and run it?

Or does it only read the value of Alias$@RunType_B28 when it was first
loaded and therefore it may be out of date when the user gets around to
using it?

At the moment I've got a version of !ieurl that gets around this by making
IEURL files filetype b29, this works with Netsurf, O2 and Fresco.

I suppose Netsurf could natively support IE url files by searching for the
URL= or BASEURL= line in the file instead of assuming it is in the 1st line?


Some of us have lots of IE URLs files we bring home.... :-)


P.S.
does the Refresh icon do anything??
:-)

P.P.S.
I finally got around to altering my web site so it look a bit neater in
Netsurf.
I like Netsurf, I really do.
--
Stuart Halliday
Webmaster of the Acorn Cybervillage
http://acorn.cybervillage.co.uk/
James Bursa
2007-09-20 04:10:48 UTC
Permalink
Post by Stuart Halliday
This worked for Fresco.
But I couldn't get it to work with Netsurf (yes I know that Netsurf uses
the Acorn URI and Fresco doesn't).
loaded and therefore it may be out of date when the user gets around to
using it?
If NetSurf is running, it acknowledges DataOpen messages from the Filer when
you double-click on a B28 file, so the Alias$@RunType_B28 will never be used.
Presumably Fresco does not acknowledge the DataOpen if it doesn't find an
http link as the first line, or does something different.
Post by Stuart Halliday
At the moment I've got a version of !ieurl that gets around this by making
IEURL files filetype b29, this works with Netsurf, O2 and Fresco.
I suppose Netsurf could natively support IE url files by searching for the
URL= or BASEURL= line in the file instead of assuming it is in the 1st line?
Yes, NetSurf could easily support these. It might be best to use a different
filetype though, since they're not really ANT URL files.
Post by Stuart Halliday
P.S.
does the Refresh icon do anything??
Not implemented :).

James

Loading...