Re: Testing special characters (e.g., omega)
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.