Here is a script that grabs the subject and message of each new email.
i need help getting this script to make a text file of each new email.
the text file needs to be formatted so that the subject is on the first line, and everything else is below it.
the filename also needs to be unique for each message…so i guess it needs to be saved using the date and time as the filename.
any help would be GREATLY appreciated.
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with eachMessage in theMessages
set theContent to content of eachMessage
set theSubject to subject of eachMessage
my createFile(theContent, theSubject)
end repeat
end tell
end perform mail action with messages
end using terms from
on createFile(theContent, theSubject)
end createFile