MACSCRPT Archives

October 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 3 Oct 2008 13:09:15 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
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

ATOM RSS1 RSS2