的身體我想要做的是完全一樣的,因爲這從下面從AppleScript;複製HTML .rtf文件到電子郵件
set the clipboard to (read "/Users/kiara/Desktop/mailer/technology/tech-en-content.rtf" as «class RTF »)
tell application "Mail"
activate
set theMessage to make new outgoing message with properties {visible:true, subject:"mysubject"}
end tell
tell application "System Events"
tell process "Mail"
repeat until focused of UI element 1 of scroll area 4 of window 1
keystroke tab
end repeat
keystroke "v" using command down
end tell
end tell
參考鏈接:Copying .rtf text into the body of an email with AppleScript
但它不工作,我Mac條件OS X小牛隊
請任何人都給我如何撰寫一個HTML電子郵件與AppleScript。
乾杯,
非常感謝您的支持。 – user1574429 2014-09-21 13:17:29
非常感謝您的建議。我試過這段代碼似乎可行,但我認爲我的HTML代碼在這種情況下會有所不同。我的HTML代碼,以此爲出發點: <!DOCTYPE HTML>