Tôi đang cố mở một cửa sổ thư mới trong Microsoft Outloook phiên bản 15.6 và điền vào các trường bao gồm phần đính kèm. Dưới đây là mã hành động của tôi:Tạo thư có tệp đính kèm trong Outlook bằng cách sử dụng 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]"}}
make new attachment at the end of newMessage with properties {file:"/tmp/Invoice INV2 - Paul.pdf"}
open newMessage
end tell
(Thông điệp này có nguồn gốc từ this stack overflow question).
Tuy nhiên, tôi gặp phải lỗi này: 256: 398: lỗi thực hiện: Microsoft Outlook gặp lỗi: Lỗi khi lưu thuộc tính bản ghi đã thay đổi. (-2700)
Có thể sử dụng ActionScript để mở thư mới trong phiên bản Outlook mới nhất không?
có thể trùng lặp của [Làm thế nào để Có thể đính kèm tệp vào thư mới trong Microsoft Outlook qua AppleScript không?] (Http://stackoverflow.com/questions/32052438/how-do-i-attach-a-file-to-a-new-message-in- microsoft-outlook-via-applescript) – Mogsdad