Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automated email reply: Help needed




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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Automated email reply: Help needed (From: "Vinod Sharma" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.