我正在使用下面的Apple脚本发送Outlook消息
set testFile to "Test.xlsx"
set filepath to ¬
((folder of file (path to me) of application "Finder" as text) ¬
& testFile) as alias
set posixDocumentPath to POSIX path of filepath
set theRecipient to "adfff@gmail.com"
set theSubject to "Test Message"
set theContent to "Outlook Mac Test"
tell application "Microsoft Outlook"
activate
set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent}
make new recipient at theMessage with properties {email address:{address:theRecipient}}
send theMessage
end tell