Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Mail, Why is "?" not equal to "?"




Answering my own question…

The incantation should have been:

tell application "Mail"
set x to content of message 1 of mailbox "Testing" as text --the magic "as text" words since "content" returns Unicode text and my test failed for that reason
end tell


set y to character 1 of x --text 1 of x fails when class of x is string (?, I don't understand why?)

y is "?"
--> true

Joe
email@hidden

------------------------------------------------------------------------ ------------------------------------------------
Few things are harder to put up with than the annoyance of a good example.
Mark Twain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden
References: 
 >Apple Mail, Why is "?" not equal to "?" (From: Joe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.