script (Automator or AppleScript) to parse info out of incoming Mail messages

Discussion in 'Mac Programming' started by marktronics, Dec 30, 2010.

  1. marktronics macrumors newbie

    Oct 18, 2010
    Hey all,

    I'm designing an app that allows users to email me crash reports if my app ever crashes. I'd like to leave Mail running on a computer and when an email comes through, a script runs that pulls the entire crash report and parses out relevant information.

    I've got the entire parsing done, except I am manually copying the contents of the email into a file and then parsing that file.

    What's the best way to set this up so I can the contents of the email be pushed into my parsing script?

    Many thanks!
  2. kainjow Moderator emeritus


    Jun 15, 2000
    You need to create a new rule in Mail that has its action set to run your script. Look at this post for a basic template to get you started.

Share This Page