好吧,所以我想创建一个苹果脚本,在mac邮件应用程序中创建一个新规则,如果我写了一封新邮件,并且邮件内容是“开始苹果脚本“,我想要一个苹果脚本启动。苹果脚本为邮件创建新的规则,激活苹果脚本
这里是我到目前为止的代码:
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
末告诉