• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Interesting... AppleScript X ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • compiler stupidity [was Re: Interesting... AppleScript X ??]
      • From: has <email@hidden>
  • Prev by Date: Re: System Events in 10.2 - what's the deal, Chris
  • Next by Date: Re: [OT] MS really understands the Mac
  • Previous by thread: Re: Interesting... AppleScript X ??
  • Next by thread: compiler stupidity [was Re: Interesting... AppleScript X ??]
  • Index(es):
    • Date
    • Thread