2012-03-01 33 views
7

Tôi đang cố gắng tạo thư mới đi với Microsoft Outlook 2011 cho mac, sử dụng AppleScript. Ví dụ sau đây làm việc tại 10.6.8:Tạo thư mới đi kèm với bản ghi chép trong Microsoft 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:"[email protected]"}} 
    open newMessage 
end tell 

On Lion Tôi nhận được lỗi sau:

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

Có ai có một đầu mối những gì đã xảy ra ở đó?

Tôi đang sử dụng Outlook ngoại tuyến.

Trả lời

2

Rõ ràng, tôi đang sử dụng phiên bản dùng thử, đã hết hạn. Với phiên bản đăng ký, tập lệnh này hoạt động hoàn hảo. Boo Outlook ... Tôi đã dành để xem xét điều này một vài giờ!

-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 

Bằng cách này, nó sẽ tự động gửi.

Các vấn đề liên quan