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!

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"

Check for a new mail (macos)
 
 
Q