I want to get the email address of a cc recipient of a mail message. Here’s what I’ve got:
set m_sender to ""
set m_body to ""
set m_subject to ""
set m_cc to ""
tell application "Mail"
--activate
set selectedMessages to selection
set msg to item 1 of selectedMessages
set m_subject to subject of msg
set m_body to content of msg
set m_sender to sender of msg
set m_cc to cc recipient of msg
end tell
set p to properties of item 1 of m_cc
get address of p
but I get this error:
Can’t get address of {address:“email@email.com”, class:recipient, name:“My Name”}.
I’ve tried using “get its address of p” and get the same error.
This is driving me nuts! Anyone know what I can do?