MACSCRPT Archives

August 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bill Steele <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 18 Aug 2011 13:04:23 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
Getting the text of an incoming message in Apple Mail is pretty straightforward (albeit not intuitive):

tell application "Mail"
set mySel to selection
set Msg to item 1 of mySel
set msgText to content of Msg
end tell

(Why those lines won't combined escapes me)

Works fine most of the time, but every so often I hit a message where the result is 

"?"

I can't find anything special about these messages. Content: text/plain, charset ASCII, etc. 

Any ideas as to why this is happening?

Bill Steele
[log in to unmask]

ATOM RSS1 RSS2