2012-03-01 42 views
7

我正在尝试使用AppleScript使用Microsoft Outlook 2011 for mac创建新的传出邮件。 下面的例子曾在10.6.8在Microsoft Outlook中使用AppleScript创建新的传出邮件

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:"[email protected]"}} 
    open newMessage 
end tell 

在Lion上,我发现了以下错误:

Microsoft Outlook got an error: Can’t make class outgoing message. 

是否有人有线索了什么问题呢?

我正在使用脱机Outlook。

回答

2

显然,我使用的试用版已过期。使用注册版本,该脚本完美地工作。 Boo Outlook ...我花了几个小时仔细研究这个!

-1
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:"[email protected]"}} 
    send newMessage 
end tell 

这样,它会自动发送它。

相关问题