Check for a new mail (macos)

Hi, How is it possible to check if I have a new mail? Is it possible to do it with ScriptingBridge? Thank you!

Replies

I’d like to clarify your requirements here. Are you trying to:

  • Check whether there is a new message in any Mail inbox?

  • Tell Mail to check for new messages, so the equivalent of the Mailbox > Get New Mail menu commmand?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Yeah, I'm trying to check if is there new message in any Mail inbox from the built in Mail app on macOS I want to get the title of the mail, the body and the sender name

Add a Comment