Re: Apple Mail, Why is "?" not equal to "?"
Re: Apple Mail, Why is "?" not equal to "?"
- Subject: Re: Apple Mail, Why is "?" not equal to "?"
- From: Joe <email@hidden>
- Date: Fri, 29 Jun 2007 11:02:47 -0700
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden