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

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


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

AppleScript Release Notes for Mac OS X version 10.5
(https://developer.apple.com/leopard/devcenter/docs/releasenotes/AppleScript/RN-AppleScript/index.html)
says that:
[quote]
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.
[/quote]

However, it does NOT work with the 'is in' construct.

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

I call this a bug and have reported it to the Bug Reporter.
(The original script of mine that was bitten by this bug had the construct: 'is in {string, Unicode text}'.)

-- heb

______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

  • Follow-Ups:
    • Re: class of "foo" is in {string} evaluates to false
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Creating small page size in InDesign CS3
  • Next by Date: Re: Creating small page size in InDesign CS3
  • Previous by thread: iCal and Leopard
  • Next by thread: Re: class of "foo" is in {string} evaluates to false
  • Index(es):
    • Date
    • Thread