Okay so I want to create a apple script that creates a new rule in the mac mail app where if I write a new email and the content of the mail is "Start applescript", I want a apple script to start.
Here is the code I have so far:
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
end tell