How can I make a Cocoa App that can receive, analyze, and reply to email? I've never used AppleScript, but it appears I can control the OSX Mail.app with it to receive and send email. So then the problem becomes one of using objective C to send AppleScript commands to the Mail.app to check for and obtain the email. Then my Cocoa App can analyze the message and create a reply, then send that reply via Mail.app with other AppleScript commands. I can find a reference for making Cocoa Apps scriptable, but not yet for making a Cocoa App that can control a scriptable app. Any pointers?