LoginSignup
1
0

More than 5 years have passed since last update.

applescriptで下書きメールを保存する

Posted at

メールを作成した後、送信せずにしばらく待つとメールが下書きに保存される。明示的に下書きに保存する方法は見つからなかった。

set theToAddress to "xxxx@aaaa.com"
set theSubject to "メールタイトル"
set theBody to "メール本文"

tell application "Mail"
    -- メール作成
    set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody}

    tell newMessage
        --受取人の指定
        make new to recipient at end of to recipients with properties {address:theToAddress}

        --メール送信しない
        --send
    end tell
end tell
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0