[REBOL] Re: Help with script to send
From: gabriele::colellachiara::com at: 16-Aug-2004 11:15
Hi PSA102,
On Sunday, August 15, 2004, 11:33:57 PM, you wrote:
P> arguments: parse/all system/script/args none
P> addressfile: to-file first arguments
P> messagefile: to-file next arguments
P> attachfiles: to-file next arguments
I'd suggest you using:
addressfile: to file! system/options/args/1
messagefile: to file! system/options/args/2
attachfiles: to file! system/options/args/3
P> members: make block!
P> message: make string!
P> attachfiles: make block!
MAKE takes two arguments here, not one. But anyway, you don't need
these at all, since you are assigning new values to the words
again below, so you should just remove these lines. (Note that
because you are missing one argument, they will actually do:
members: make block! message: make string! attachfiles: make block! message: read/lines
messagefile
So you get message turned back into a string here. (Also, I really
think you're not wanting /LINES here.)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/