I got it to work by jumping into the
slashdot-viewer/ directory that it creates
and doing the viewers. Nice stuff.

By the way, I would suggest to create the
directory in the public cache, not in the
current directory.
If some idiot like me runs the script from
the console, all your files end up in the
current directory, wherever that might be.

This example creates the directory in the public cache:

        site: http://www.stuff.mynetcologne.de/reb/slashdot/
        make-dir/deep public-dir: path-thru site/slashdot-viewer

        ; Now save & access your files in public-dir.

This has the advantage that the script is always certain where
the slash-viewer/ directory is.


Oh, of course, by default, 'cp is an alias of 'copy, in
rebol, so as I have redefined 'cp it broke the script.
I didn't see many people using 'cp until now.

Regards,

Anton.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Anton Rolls
Sent: Friday, 19 July 2002 3:15 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: announce: slashdot-viewer


Almost for me. I will try again. I ran it in console of
REBOL/View 1.2.5.3.1 6-May-2002.
It downloaded a whole bunch of stuff, showing
a "dyna-gui" with "happy birthday code red" in it.

Then bombed out with this (you can see my file copy
function 'cp, is already defined):

>> do http://www.stuff.mynetcologne.de/reb/slashdot/slashdot-viewer.r
** Script Error: cp expected original argument of type: file
** Where: context
** Near: lay: cp [
    backdrop slash-bg effect [emboss fit]
    across
    title "README" underline gold [
        view/new readme-lay
    ]
    pad 15x0
    ti: title "select skin" underline gold
    tx: text as-is right
    {Developed by Volker, Gregg, and Chris.

Thanks to by Joanna and the mailing list for the idea,
and RT for IOS developer server where we collaborated.}
    return
    pad 20x0
]
foreach [file xlay]
>> ? cp
USAGE:
    CP original clone /over /quiet

DESCRIPTION:
     Copy from original to clone
     CP is a function value.

ARGUMENTS:
     original -- file or directory (Type: file)
     clone -- file or directory (Type: file)

REFINEMENTS:
     /over -- Allow overwriting. Asks for your permission.
     /quiet -- Don't print


Anton.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to