On Oct 3, 2008, at 1:02 PM, RJay Hansen wrote:

> I was wondering the same thing (if it may have got garbled in email).
>
> Running that gives slightly different results. First I get the error:
>
> -1728
> Can't get text 1 thru -2 of "_"
>
> after dismissing that error message I get the same one I got from  
> pasting your script from email into a new script:
>
> -1700
> Can't make THE PENULTIMATE TRUTH
>  by Philip K. Dick
> etc....
>
> I'm on 10.4.11 and my AppleScript version is 1.10.7
> Did Leopard come w/a new version of AppleScript?

Leopard came with 2.0  Big changes under the hood.

I ran it on my 10.4 machine and got the same results you did.

Removing the as text from the write line fixes that.

The second error that you get with the can't get text 1 through -2 of  
"_" comes from having two __ right next to each other.  To fix that  
you need to add a check for "_" in the else inside of the repeat like  
there is in the main if.

-Mark