Using AppleScript to set a mail message to Plain Text

前端 未结 3 1540
忘掉有多难
忘掉有多难 2021-01-20 06:45

I have an AppleScript that nicely collates information and creates an email message with attachments.

I cannot find a way for the script to set the message format to

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-20 07:40

    Before the section in your script that creates a message, add this line.

     tell application "Mail" to set default message format to plain text
    

    At the very end of the script add this to reset the value

     tell application "Mail" to set default message format to rich text
    

提交回复
热议问题