Because you need to return a value from Attempt. Put TRUE at the end of the attempt block and you should be good to go!
HTH! ~~Ammon ;~> On Fri, 4 Mar 2005 10:50:56 -0800, Kai Peters <[EMAIL PROTECTED]> wrote: > > > 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. > > -- Enjoy!! ~~~ Ammon ~~~ ~ Sui Generis ~ ~~~~ ;~> ~~~~ -- To unsubscribe from the list, just send an email to rebol-request at rebol.com with unsubscribe as the subject.
