Hi. This is my first post to the forum.
I am missing something. I have a script that runs when a rule is activated in OS 10.3 Mail.app. Inside the script I can retrieve all of the ‘properties’ of the ‘message’, but I can’t seem to get the receipients which is an ‘element’. Applescript is very new to me. This is what I have so far:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with eachMessage in theMessages
set theSubject to subject eachMessage
-- now what?
end perform mail action with messages
end using terms from
I think I would like to get a list of all the ‘to recipient’ and have it set to a string like mailed_to where each address is separate by something like**** which I can parse out later. I would want to do the same with ‘cc recipient’ and ‘bcc recipient’. I feel like I have come so close to finding the answer, but I just can’t get it.
Eventually, I will post the email to a database using a webservice - (actually, I have the webservice part running fine - I think.)