I want to check a POP email account and have a program pull the tesx from the message body. Any ideas what would work, because this doesn’t:
tell application “Mail”
activate
delay 5
check for new mail for account “home”
get body of first message
end tell
I get ths error:
tell application “Mail”
activate
check for new mail for account “home”
get body of message 1
“Mail got an error: Can’t make body of message 1 into type reference.”
I tried them. They work. There is one problem, I want it to get the content of new messages from one of my two pop accounts. For some reason, it is not checking for new email from the pop account “home”, it just keeps pulling up an old emai. Any ideas?
tell application “Mail”
activate
delay 5
check for new mail for account “home”
set messageBody to content of (message 1 of inbox)
end tell