Hi list= ~ 

  

Why does my code below fail? I believe I am= doing exactly what the 

help tells me ... 

  

Again, thanks for any pointers! 

  

Kai 

  

  

  

*****************************************= 

relevant part of my script: 

*****************************************= 

  

foreach pdf pdfs [ 

  

  cururl:   append copy= baseurl pdf 

  

  fname:    append= copy %/c/city/pdfs2/ pdf 

  

  print pdf 

  

  if not value: attempt= [ 

  

    write/binary fname= read/binary cururl 

=09 

  ]=09 

  [ print append "Problem with "= replace/all pdf "%20" " " ] 

  

] 

  

  

*****************************************= 

>From the help @ http://rebol.com/docs/word= s/wattempt.html[0]: 

*****************************************= 

  

    if not value:= attempt [load %data] [print
"Problem"]

    Problem 

  

  

*****************************************= 

rebol console output 

*****************************************= 

  

REBOL/View 1.2.55.3 

  

** Script Error: not is missing its value= argument 

** Near: if not attempt [ 

    write/binary fname= read/binary cururl] 

  

  

REBOL/View 1.2.1.3.1 

  

** Script Error: attempt has no= value 

** Where: halt-view 

** Near: if not attempt [ 

    write/binary fname= read/binary cururl 

] 
-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to