Like this article? We recommend
Configuring a Mail Rule
Configuring a Mail Rule
The final step is to configure a Mail rule to run when messages arrive that match specified criteria.
- Launch Mail, and choose Preferences from the Mail menu.
- In the toolbar of the preferences window, click Rules.
- Click Add Rule. Enter Launch Automator Workflow in the Description field, and configure the rule as shown below and in Figure 5 (replacing 12345 with the security code you entered in your Mail rule script):
If any of the following conditions are met:
Subject Begins with Automator Workflow 12345 -
Perform the following actions:
Run AppleScript ~/Library/Workflows/Mail Rules/Launch Automator Workflow.scpt
Figure 5 Configuring the Launch Automator Workflow Mail rule.