• 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: Weird AppleScript Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird AppleScript Problem


  • Subject: Re: Weird AppleScript Problem
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 04 Dec 2011 17:21:24 +0000

Bernardo Hoehl wrote on Sun, 04 Dec 2011 08:49:53 -0200:

>I have found a problem with this code:
>
>considering case
>	"ª" = "a"
>end considering
>
>On my understanding this should return "false".
>
>But it returns "true".
>
>What is the best way to detect characters like these?

The 'contains', 'is in', 'begins with', and 'ends with' operators
differentiate between these characters — in Snow Leopard, at least.

  considering case -- or ignoring
    "ª" is in "a"
  end considering
  --> false

Or of course you could test the characters' ids.

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: Automator workflow fails -OT
  • Next by Date: Re: Weird AppleScript Problem
  • Previous by thread: Re: Weird AppleScript Problem
  • Next by thread: Automator workflow fails -OT
  • Index(es):
    • Date
    • Thread