Как избежать предупреждения безопасности Outlook при отправке сообщения Outlook с использованием AppleScript? - PullRequest
0 голосов
/ 21 сентября 2018

Я использую приведенный ниже скрипт 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

Но я вижу предупреждение безопасности Outlook, как мне его обойти enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...