2012-02-18 44 views
1

我已經創建了一個AppleScript腳本來根據一些規則提取電子郵件正文。 set this_content to (every character of content of this_message) as Unicode text用於提取HTML郵件的AppleScript

但它似乎只是將文本作爲純文本提取出來。

是否可以獲取HTML內容而不是純文本?我收到一些郵件表,並希望解析它們,但在純文本的情況下,我只能將它看作值列表。

是否可以像set this_content to (every character of content of this_message) as HTML那樣執行水印?

回答

2

您應該能夠看到郵件的屬性中的HTML(如果有),該郵件包含原始來源,例如,

set this_content to source of this_message