Re: Finder Tell Blocks
Re: Finder Tell Blocks
- Subject: Re: Finder Tell Blocks
- From: John W Baxter <email@hidden>
- Date: Mon, 4 Mar 2002 08:13:31 -0800
At 8:10 -0600 3/4/2002, JollyRoger wrote:
>
On 3/4/2002 7:29 AM, "Mr Tea" <email@hidden> wrote:
>
>
> This from JollyRoger - dated 4/3/02 01:01 pm:
>
>
>
>> application "Finder"'s execution state
>
>
>
> "Ohh!", I think. "That looks interesting, I wonder what it does?"
>
>
>
> And the answer is, it generates an error message when I try to compile it.
>
> "A identifier can't go after this identifier."
>
>
>
> How is this property accessed, and what does it mean? Is it terminology from
>
> an addition that I don't have installed, or some sort of piratical jest?
>
>
>
> Hmm?
>
>
Serves me right! I wrote that without running it to test it. ;)
>
>
Not sure why that fails to compile. :/
It depends. Alone in a script (no Finder tell blocks), the answer is simple:
"execution state" is unknown, as are "execution" and "state". It's like
writing
a b
without having defined the variables.
After a Finder tell block, there is a different error:
tell application "Finder"
end tell
application "Finder"'s execution state
Now the error is "Expected end of line but found property". (Script
Debugger highlights the "state".)
I think that means that AppleScript does now know the term "execution
state" because of the prior tell, but doesn't know what to do with it.
(Same result if one puts the usually-optional "get" in front of the line,
and/or the usually optional "the" in front of "execution state".)
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.