【问题标题】:Create template email with Automator使用 Automator 创建模板电子邮件
【发布时间】:2021-05-12 07:47:32
【问题描述】:

是否可以创建某种自动化快捷方式,在 Apple Mail 中创建新邮件,在 TO 中使用特定的电子邮件地址,在主题中使用特定的文本?

【问题讨论】:

    标签: automator


    【解决方案1】:

    如果新电子邮件的收件人主题每次都相同,您可以编辑此邮件的toRecipientemailSubject跟随 AppleScript 代码,然后将 Run AppleScript 命令添加到 新 Automator 快速操作 并将代码粘贴到 Run AppleScript 命令中

    property toRecipient : "John_Doe@gmail.com"
    property emailSubject : "Insert Email Subject Here"
    property emailContent : "Insert Email Content Here"
    
    sendNewEmail()
    
    
    to sendNewEmail()
        tell application "Mail"
            activate
            set newEmail to (make new outgoing message)
            set content of newEmail to emailContent
            set subject of newEmail to emailSubject
            tell newEmail
                make new to recipient with properties {address:toRecipient}
            end tell
        end tell
    end sendNewEmail
    

    命名并保存新的Automator Quick Action后,您只需在系统偏好设置中为其分配一个新的键盘快捷键 .

    【讨论】:

      猜你喜欢
      • 2011-02-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-18
      • 2010-12-18
      • 2020-05-08
      • 1970-01-01
      • 2014-09-17
      相关资源
      最近更新 更多