Automator / AppleScript to process incoming emails in Mac Mail

后端 未结 3 1713
攒了一身酷
攒了一身酷 2021-01-14 06:47

I\'m designing an app that allows users to email me crash reports if my app ever crashes. I\'d like to leave Mac Mail running on a computer and when an email comes through,

3条回答
  •  余生分开走
    2021-01-14 06:55

    Probably the simplest approach is to define a Mail.app Rule. You can set up filtering conditions to specify the set of incoming email to apply the rule to and among the rule actions you can specify is one to run an AppleScript on incoming messages. Rules are managed with Mail.app Preferences -> Rules. Apple supplies examples of Rule Action scripts with Mac OS X. Look in /Library/Scripts/Mail Scripts/Rule Actions or search the web.

提交回复
热议问题