1

後で送信するようにスケジュールする必要があるメールがあります。iCal を使用して設定した時間に起動するように Apple スクリプトをスケジュールできることは知っていますが、機能するスクリプトを見つけることができませんでした。ただし、必ずしもこのようにする必要はありません。この問題の解決策に感謝します。

4

3 に答える 3

0

これは、10.6.8のiCalでスクリプト実行アラームを使用して機能します

tell application "Mail"
    activate
    set mymail to make new outgoing message at the beginning of outgoing messages with properties {subject:"Triggered"}
    tell mymail
        make new to recipient at beginning of to recipients with properties {address:"first@email.com, second@email.com"}
        set content to "hi"
    end tell
    --show message window (otherwise it's hidden)
    set visible of mymail to true
    --bring Mail to front
    activate
    send mymail
end tell
于 2012-09-14T11:21:26.150 に答える
0

outgoing message 1 doesn’t understand the send message送信メッセージを送信しようとしたときのようなエラーも発生します。ただし、スクリプトから作成されたメッセージを参照することはまだ機能しているようです。

tell application "Mail"
    set m to make new outgoing message with properties {subject:"subject", content:"content"}
    tell m
        make new to recipient at end of to recipients with properties {address:"jana@doe.com, john@doe.com"}
    end tell
    send m
end tell

Automator でカレンダー アラームを作成することもできます。

于 2012-09-14T09:01:59.037 に答える
0

Apple Mail のみを使用して、Automator を使用せずにこれを実現しました。

  1. カレンダーの任意の場所をダブルクリックして、イベントの作成を開始します。
  2. イベントに名前を付けます。これがメールの件名になります。
  3. メールを送信するイベントの日時を設定します。
  4. スケジュールに従って電子メールを送信する場合は、繰り返しの頻度と潜在的な終了日を選択します。
  5. についてはalert、 を選択しますCustom...

ここに画像の説明を入力

  1. を選択しemailます。連絡先アプリに連絡先カードを追加するように求められる場合があります。

ここに画像の説明を入力

  1. メールの送信先を選択し、時刻を に設定しAt Time Of Eventます。を押しOKます。

ここに画像の説明を入力

  1. メモ、URL、または添付ファイルを追加することを選択できます。これらのオプションは試していませんが、送信された電子メールで引き継がれていると思います。

ここに画像の説明を入力

于 2019-12-20T18:02:58.357 に答える