Как может я открывать новое почтовое использование AppleScript, установка “To”: “Предмет”: и присоединение файла?

Чтобы помочь моим пользователям сообщить о проблемах легко, я хочу создать как можно больше электронного письма. Самое главное я хочу присоединить файл (файл журнала).

Как я могу сделать это в AppleScript?

1
задан Steve McLeod 12 August 2010 в 10:46
поделиться

1 ответ

tell application "Mail"
    set theMessage to make new outgoing message with properties {visible:true, subject:"My Subject", content:"My Body"}
    tell theMessage
        make new to recipient at end of to recipients with properties {name:"Ben Waldie", address:"applescriptguru@mac.com"}
    end tell
    tell content of theMessage
        make new attachment with properties {file name:pathToFile} at after last paragraph
    end tell
end tell
2
ответ дан 2 September 2019 в 22:13
поделиться
Другие вопросы по тегам:

Похожие вопросы: