I want to make an Mac application which read e-mails from Mail.app and display them, but I can’t find any info about how to read mail from Mail.app. My question is:
- how to read e-mails from Mail.app? any suggestion would be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Applescript is probably the easiest way, for example:
Run the script through
NSAppleScript, quick dirty example (no error handling and so on):Alternative use
osascriptthroughNSTaskto run the script.EDIT (response to comment)
Loop through all messages and add their body to the
theMessageslist.