Re: Automated email reply: Help needed
Re: Automated email reply: Help needed
- Subject: Re: Automated email reply: Help needed
- From: Wayne Melrose <email@hidden>
- Date: Fri, 12 Jan 2007 15:40:50 +0100
On 12. jan. 2007, at 15.19, Vinod Sharma wrote: Hi Guys, I am student and Teaching Assistant (TA) for a course and there are lot of students in the class. One of my job is grading the assignments and exams. I want to make an automated system using Apple script such that student will send the email to me and my system will send them their grades back ot them automatically. Let me explain in a little bit details:
1. My script should be able to get catch any incoming email. 2. It should be able to read where message is coming from. (Suppose - email@hidden) 3. It should be ablle to get the subject of the message. (Sub: Assignment 3) 4. It should be able to get the content of the message. (Content: Assignment 3 grades) 5. If email is not valid then send mail saying message is not correct. 6. If email is valid and coming from one of my student then my Application should be able to send the respective students his/her grades.("your grade is 93/100") I just bought my Macbook and new to apple script, I understand that this can be done using Apple Script and Mail application. But i don't know how to do it and don't have enough time nbecause of semester load to venture much time in learning. Any help in this regard will be highly appreciated.
I do have background in C++ and database so connecting the Apple script code to the SQ-lite should not be a problem for me.
Thanks,
Vinod
Hey Vinod, 1) Try looking at the Preferences in Mail and going to the "Rules" window.
From there you can tell Mail to look for a particular subject line. After that you can deal with mails that specifically relate to that subject line. The body of the mail could be there student id (for example) and then you can search and compare the email from there to your database.
2) There are heaps of examples on the web and even in your own computer right now.. check out.. "/Library/Scripts/Mail Scripts/Rule Actions/Sample Rule Action Script.scpt"
Hope that helps..
Wayne
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden