Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: How to form a block containing two Rebol filenames?

From: SunandaDH:aol at: 18-Aug-2004 3:31

> The script works. Now, I need to modify it to handle a list of "n" files in > the input series, "attachfiles."
Your original code suggests the script is invoked something like this: rebol -s myscript.r file1 file2 file3 file4 file5 ... where file3 and upwards will be the attach files. If so, your problem becomes one of running a loop from the 3rd entry of system/options/args. Something like this: attachfiles: copy [] foreach file-name next next system/options/args [ append attachfiles to-file file-name ] Sunanda