Run Applescript on new email
I’m still experimenting, but so far I found two strategies:
- Enable Folder Actions and attach a script to the folder in ~/Library/Mail/ which hold the inbox’s messages
- Create a rule general enough to reply to all messages (e.g. account = my_email_account)
The rule approach seems to fire a bit quicker than the Folder Actions, so I’m going with that for the moment.
Categories: Applescript, Mac