• 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: Is this a major bug or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a major bug or not?


  • Subject: Re: Is this a major bug or not?
  • From: "Nigel Garvey" <email@hidden>
  • Date: Sun, 31 May 2009 22:43:58 +0100

Philip Aker wrote on Sun, 31 May 2009 11:59:09 -0700:

>set foo to {x:"text", y:5, class:"temp", z:pi}
>class of contents of foo
>
>It's a bug if there is no way to get the class of the foo object itself.

  on classOf(foo)
    if ((count {foo}'s records) > (count {foo}'s lists)) then
      record
    else
      class of foo
    end if
  end classOf

  set foo to {x:"text", y:5, class:"temp", z:pi}
  classOf(foo)


NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Is this a major bug or not?
  • Next by Date: Re: Is this a major bug or not?
  • Previous by thread: Re: Is this a major bug or not?
  • Next by thread: quicktime player: get starttimecode
  • Index(es):
    • Date
    • Thread