Mailing Lists: Apple Mailing Lists

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

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



Apple Mail seems to have a problem returning the content of a message that was composed in HTML. For example, a message from this Apple mailing list composed in HTML will return this when asked for "content" of message.

tell application "Mail"
set x to content of message 1 of mailbox "Testing"
end tell
-->
"? _______________________________________________
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/pika.talus% 40sbcglobal.net
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden"

The body of the message is missing and all that is returned is the list's siggy line.

More interesting, if I try to create a test to determine whether to call for "content" or "source" of a message, I get rather rude behavior. For example: Building on the above lines of script:

set y to text 1 of x
-->  "?"

y is "?"
--> false

What! It just returned that a second ago? I'm a little lost. I thought the last line should return true. Does anyone know what I'm seeing and why?

Joe
email@hidden

____________________________________________________________________

Things are more like they are now than they ever were before.
Dwight D. Eisenhower
_______________________________________________
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


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.