【发布时间】:2021-05-12 07:47:32
【问题描述】:
是否可以创建某种自动化快捷方式,在 Apple Mail 中创建新邮件,在 TO 中使用特定的电子邮件地址,在主题中使用特定的文本?
【问题讨论】:
标签: automator
是否可以创建某种自动化快捷方式,在 Apple Mail 中创建新邮件,在 TO 中使用特定的电子邮件地址,在主题中使用特定的文本?
【问题讨论】:
标签: automator
如果新电子邮件的收件人和主题每次都相同,您可以编辑此邮件的toRecipient和emailSubject跟随 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后,您只需在系统偏好设置中为其分配一个新的键盘快捷键 .
【讨论】: