Re: Interesting... AppleScript X ??
Re: Interesting... AppleScript X ??
- Subject: Re: Interesting... AppleScript X ??
- From: Andy Wylie <email@hidden>
- Date: Thu, 26 Sep 2002 23:24:24 +1200
on Thu, 26 Sep 2002 10:38:21 +0100 has wrote:
>
BTW, bizarrely, the compiler seems to trip up on the following syntax for
>
no adequate reason:
>
>
"abcde"'s count -- compiler error: "I am too stupid to understand this"
>
In reality it says 'expected expression but found command name', why do you
expect count to be a property of "abcde"? Because 'of' works? Count is a
procedure isn't it?
however...
count {"abcde"}'s every string
is quirky in some AS versions if I recall correctly.
>
But then, it also screws up on stuff like:
>
>
if count "abcde" is 5 then beep
>
I don't find either of these examples bizarre, once you learn to
parenthesise a procedure so it's resolved first it becomes intuitive. If all
else fails use a variable.
_____________________________ Andy
_______________________________________________
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.