|
Pages: [1]
|
 |
|
Author
|
Topic: Script Problem (Read 229 times)
|
Guest_Leke
Guest
|
REBOL []
if not exists? %downloads/ [make-dir %downloads/] change-dir %downloads/
prin "Enter Download Link " get-address: input file: read/binary to-url get-address
prin "Enter a name & extension for your file: " name: rejoin ["%" input]
write/binary name file Enter Download Link http://geocities.com/leke1975/goodies.zipEnter a name & extension for your file: test.zip ** Script Error: write expected destination argument of type: file url object block ** Near: write/binary name file halt >> name == "%test.zip" >> What's happening here?
|
|
|
|
|
Logged
|
|
|
|
|
Sunanda
|
rejoin ["%" input]
Does not create a word of datatype file!
It creates a string that begins with a percent sign.
Try:
to file! input
|
|
|
|
|
Logged
|
|
|
|
Guest_leke
Guest
|
Ahh yes! "test.zip" is a string.
Thanks Sunanda.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |