私は見てみましたが、この一見単純な質問に対する答えを見つけることができませんでした(私もAppleScriptを初めて使用します)。基本的に、ルールを設定し、メッセージをメールボックス「Foo」(IMAPアカウントのメールボックス)に移動するスクリプトが必要です。これが私が持っているものです:
tell application "Mail"
set newRule to make new rule at end of rules with properties {name:"Foo Internal", enabled:true}
tell newRule
make new rule condition at end of rule conditions with properties {rule type:any recipient, expression:"internal_foo@foo.com", qualifier:does contain value}
set move message to mailbox "Foo"
end tell
end tell
このラインのさまざまな組み合わせを試しました...
set move message to mailbox "Foo"
... IMAPアカウントの指定、変数への設定などを含みます。私はプログラマーではありませんが、これらのルールをスクリプト化したいので、仕事で常にルールを設定しています。何か助けはありますか?