わかりましたので、Mac メール アプリで新しいルールを作成する Apple スクリプトを作成したいと思います。新しいメールを作成し、メールの内容が「AppleScript の開始」である場合、Apple スクリプトを開始します。
これが私がこれまでに持っているコードです:
tell application "Mail"
set newRule to make new rule at end of rules with properties {name:"Apple script rule", forward message:""}
tell newRule
make new rule condition at end of rule conditions with properties {rule type:message content, qualifier:does contain value, expression:"Start applescript"}
end tell
終わりを告げる