Yeah, I took out the returns. Still got that error. So I tried changing:

write head to outputFileHandle as text

to

write head to outputFileHandle

and did the same with the "write tail to outputFileHandle as text".

That got rid of the first -1700 error, but it still returns that same  
error with "Can't make THE PENULTIMATE TRUTH
   by Philip K. Dick

Copyright 1964 by Philip K. Dick

Afterword copyright 1984 by Thomas M. Disch

Cover art by Barclay Shaw........etc"

and proceeds to put the entire text into the error message--but stops  
at the bottom of the screen, so I don't know what it can't make it  
into. :-)

RJay


On Oct 3, 2008, at 10:58 AM, Mark Lively wrote:

> On Oct 3, 2008, at 11:59 AM, RJay Hansen wrote:
>
>> Hmmm... It comes back with a -1700 error: Can't make "{\\rtf1\\ansi 
>> \\ansicpg1252\\cocoartf949\\cocoasu.... etc. into text.
>>
> try taking out the returns.
>
>> I'm not understanding what the purpose of that part of the script  
>> is for?
>>
>
> That is an RTF header.  Rich text files have a header that describe  
> the font on how the file is to be displayed.  The header is a  
> fairly generic one.
>
> -Mark