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 [
> 
> &#160;&#160;cururl: &#160;&#160;append copy= baseurl pdf
> 
> &#160;&#160;
> 
> &#160;&#160;fname: &#160;&#160;&#160;append= copy %/c/city/pdfs2/ pdf
> 
> &#160;&#160;print pdf
> 
> &#160;&#160;
> 
> &#160;&#160;if not value: attempt= [
> 
> &#160;&#160;
> 
> &#160;&#160;&#160;&#160;write/binary fname= read/binary cururl
> 
> =09
> 
> &#160;&#160;]=09
> 
> &#160;&#160;[ print append "Problem with "= replace/all pdf "%20" " " ]
> 
> &#160;&#160;
> 
> ]
> 
> *****************************************=
> 
> From the help @ http://rebol.com/docs/word= s/wattempt.html[0]:
> 
> *****************************************=
> 
> &#160;&#160;&#160;&#160;if not value:= attempt [load %data] [print
> "Problem"]
> 
> &#160;&#160;&#160;&#160;Problem
> 
> *****************************************=
> 
> rebol console output
> 
> *****************************************=
> 
> REBOL/View 1.2.55.3
> 
> ** Script Error: not is missing its value= argument
> 
> ** Near: if not attempt [
> 
> &#160;&#160;&#160;&#160;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 [
> 
> &#160;&#160;&#160;&#160;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.

Reply via email to