Re: Learning Apple Script
Re: Learning Apple Script
- Subject: Re: Learning Apple Script
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 29 Apr 2002 15:29:32 -0700
On 4/29/02 3:47 PM, "Greg Reyna" <email@hidden> wrote:
>
First off, I got a couple of errors so I looked all over but couldn't
>
find a list of error messages and their numbers. Why is that? Isn't
>
this a common feature of languages? Anyway, it seems that the
>
language has changed since this book was written because I got
>
compilation error "-2741" on the word "Document" on this line:
>
>
choose file "Locate the file "Offset Document":" of type "QUIL"
That line can't be right. Even back when the book was written, there are
extraneous quotes and colons. And it's missing the \ escape characters you
need for literal quote symbols (") within quotes
choose file of type {"QUIL"} with prompt "Locate the file \"Offset
Document\""
is the correct syntax. it will also work without the list brackets around
"QUIL" .
>
>
[the error dialog reported-> "Expected end of line, etc. but found
>
class name."]
When it hit the second quote just before 'Offset', that finished the prompt.
It looks as if kindly coerces prompt strings even without 'with prompt'.
Then it thought 'Offset' was the standard addition command. But when it hit
'Document', that was just too much. That's a class, at least when you follow
it by what appears to the script to be another string ":". You get a
different error otherwise.
>
>
--I don't understand... (I got rid of everything after "choose
>
file", and the script worked fine, but what happened?)
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.