• 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: Testing special characters (e.g., omega)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing special characters (e.g., omega)


  • Subject: Re: Testing special characters (e.g., omega)
  • From: Jeffrey Mattox <email@hidden>
  • Date: Fri, 31 Jan 2003 02:28:50 -0600

The problem has been solved with the help of Michelle Steiner. The trick is to be sure theChar (which is was the loop variable in a repeat loop) is coerced into a string before doing the comparison. It's also important that you don't have other bugs in your code. :-)

Jeff

How do I test for characters such as  (omega, Option-z) and  (sigma, Option-w)? If I test for those characters directly, they never match. For example, this test is never true

if ( theChar is "" ) then
display dialog "got an omega"
end if

If I log the characters begin tested, I get these constructs, which I don't understand:

Omega: "\\u03a9"
Sigma: "\\u2211"

Jeff
_______________________________________________
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.

References: 
 >Testing special characters (e.g., omega) (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Re: What is the most efficient/fastest Find & Replace technique?
  • Next by Date: Re: What is the most efficient/fastest Find & Replace technique?
  • Previous by thread: Testing special characters (e.g., omega)
  • Next by thread: Re: Testing special characters (e.g., omega)
  • Index(es):
    • Date
    • Thread