[REBOL] Re: Rebol, Lists, Forums, archives, AltME...
From: carl:cybercraft at: 24-Jan-2004 11:45
On 08-Jan-04, Ken Cadby wrote:
> Speaking of ways to combine multiple rebol support channels to avoid
> a 'fractured' user community, I wish I had an icon on my View
> Desktop that could take or point me to rebolish urls, including
> perhaps even blogs, or the ability to easily add my own urls. Other
> useful features would include 1) a way to track or sort which urls
> the user finds most useful, so that something like a 'Top 10' list
> of resources could be maintained on my desktop; 2) extend this
> ability to maintain my own urls and Top 10 list such that
> rebolforces.com (or where ever) always has the latest Top 10/100
> list compiled from users who''ve submitted their own lists. Ie, just
> a simple use count (and/or user vote) for each url in the master
> list.
> Too complicated? If there's 'one place' a user should be able to
> browse rebol resources, shouldn't it be from a rebol desktop? Seems
> to me like an app perfectly suited for rebol. Here's more
> complicated: Add a search feature (at least for some sites), or
> bring up the site's search page if it has one, or bring up a
> site-specific google search page.
> --Ken (still just a rebol wannabe).
The Desktop's designed for adding such features. If you look in
View's Desktop directory you'll see a script called services.r You
can add extra "services" to this which place menu items on the View
Desktop which run a script of your choice.
As an example I added an "Open" to the Desktop menu to allow me to use
the View file-requester to select and run scripts. To do this I
added this line to the services.r script...
service "Open" %/path-to-REBOL-directory/local/requester.r
(Can't remember if the full path to the script is needed and whether
it also needs to be in a directory called local - but that's how I
did it, anyway:)
...and this is the script it runs - requester.r ...
REBOL []
quit?: false
while [not quit?][
file: request-file/title/only/keep/filter
"Load and run a REBOL script:" "Launch"
".r"
either file [
error? try [do file]
][
quit?: true
]
]
I don't know if that works on the latest beta Views, but it does on
View 1.2.1 - for me, anyway. If you try it and it doesn't work, let
me know what problems you have. (Written a while back, so probably
not how I'd write it now.)
So, you should be able to write an URL manager to run as a "service"
on the Desktop.
The problem with the Desktop is it /is/ a desktop and not a browser.
It needs better navigation and good bookmark handling to move it more
towards a browser. Still, the source has been released, so someone
somewhere may be working on improving it.
--
Carl Read