在Microsoft Outlook中使用applescript创建新的传出邮件
我正在尝试使用Microsoft Outlook 2011 for mac,使用在Microsoft Outlook中使用applescript创建新的传出邮件,outlook,applescript,osx-lion,sendmail,Outlook,Applescript,Osx Lion,Sendmail,我正在尝试使用Microsoft Outlook 2011 for mac,使用AppleScript创建新的传出邮件。 以下示例适用于10.6.8: tell application "Microsoft Outlook" set newMessage to make new outgoing message with properties {subject:"Hooray for automation"} make new recipient at newMessage wi
AppleScript
创建新的传出邮件。
以下示例适用于10.6.8
:
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"jim.shank@example.com"}}
open newMessage
end tell
在Lion上,我得到以下错误:
Microsoft Outlook got an error: Can’t make class outgoing message.
有人知道哪里出了问题吗
我使用的是离线Outlook。显然,我使用的是试用版,已经过期。对于注册版本,此脚本可以完美地工作。Boo Outlook…我花了几个小时研究这个
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"jim.shank@example.com"}}
send newMessage
end tell
这样,它将自动发送。显然,在较新版本的Outlook中,需要在脚本的第三行使用“收件人”或“抄送收件人”或“密件抄送收件人”。