在Microsoft Outlook中使用applescript创建新的外发邮件

Nav*_*mon 7 outlook applescript sendmail osx-lion

我正在尝试使用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 with properties {email address:{name:"Jim Shank", address:"jim.shank@example.com"}}
    open newMessage
end tell
Run Code Online (Sandbox Code Playgroud)

在Lion上我收到以下错误:

Microsoft Outlook got an error: Can’t make class outgoing message.
Run Code Online (Sandbox Code Playgroud)

有人知道那里出了什么问题吗?

我正在使用离线Outlook.

Nav*_*mon 3

显然,我使用的是试用版,该版本已过期。对于注册版本,该脚本可以完美运行。嘘 Outlook...我花了几个小时研究这个!