• 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: class of "foo" is in {string} evaluates to false
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: class of "foo" is in {string} evaluates to false


  • Subject: Re: class of "foo" is in {string} evaluates to false
  • From: Harald E Brandt <email@hidden>
  • Date: Tue, 6 Nov 2007 23:15:16 +0100


On 6 nov 2007, at 22.55, Paul Berkowitz wrote:

On 11/6/07 1:40 PM, "Harald E Brandt" <email@hidden> wrote:


{class of "foo"} is in {string, Unicode text}
Returns false!!

{class of "foo"} is in {string, text, Unicode text}
returns true!

class of "foo" is in {string, text}
returns true!


So

    class of "foo"
    --> text

in Leopard?

Yes, and that was exactly what I quoted:
(In addition, text, string, and Unicode text will all compare as equal. For example, class of "foo" is string is true, even though class of "foo" returns text.
.)

And that's why the common construct:
class of "foo" is in {string, Unicode text}
should return true, because it should also do coercion!
But the comparison, as quoted from the release note, does not work in the 'is in' case.

______heb____________________________
Harald E Brandt     http://bragit.com



 _______________________________________________
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

References: 
 >Re: class of "foo" is in {string} evaluates to false (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: class of "foo" is in {string} evaluates to false
  • Next by Date: Re: Print-to-PDF
  • Previous by thread: Re: class of "foo" is in {string} evaluates to false
  • Next by thread: Scripting Display Arrangement?
  • Index(es):
    • Date
    • Thread