我有一封电子邮件,我需要安排稍后发送。我知道你可以安排一个苹果脚本使用iCal在设定的时间启动,但我找不到一个有效的。但它不一定必须以这种方式完成。我将很感激解决这个问题。
答案 0 :(得分:0)
我在尝试发送外发邮件时也遇到outgoing message 1 doesn’t understand the send message
之类的错误。引用从脚本创建的消息似乎仍然有效。
tell application "Mail"
set m to make new outgoing message with properties {subject:"subject", content:"content"}
tell m
make new to recipient at end of to recipients with properties {address:"jana@doe.com, john@doe.com"}
end tell
send m
end tell
你也可以create a Calendar alarm in Automator。
答案 1 :(得分:0)
这适用于我在10.6.8的iCal中运行脚本警报
tell application "Mail"
activate
set mymail to make new outgoing message at the beginning of outgoing messages with properties {subject:"Triggered"}
tell mymail
make new to recipient at beginning of to recipients with properties {address:"first@email.com, second@email.com"}
set content to "hi"
end tell
--show message window (otherwise it's hidden)
set visible of mymail to true
--bring Mail to front
activate
send mymail
end tell
答案 2 :(得分:0)