0
我想使用Mac Automator操作發送郵件。我準備以下郵件腳本:在蘋果中選擇郵件帳戶
set recipientName to "<recipient>"
set recipientAddress to "<recipient mail address>"
set theSubject to "<mail subject>"
set textBody to "<text>"
tell application "Mail"
set theMessage to make new outgoing message with properties {subject:theSubject, content:textBody, visible:true}
--set recipient
tell theMessage
make new to recipient with properties {name:recipientName, address:recipientAddress}
--send the message
send
end tell
end tell
現在,當我發出這它使用的基本上是目前在郵件應用程序中選擇(高亮)的賬戶。
有什麼方法可以選擇特定的帳戶?
哎@ Dragon5689這是怎麼回事?你是否在下面嘗試我的答案? – adamh