2012-03-01 39 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 

這樣,它會自動發送它。

相關問題