Learning & Using AppleScript & JavaScript for Automation (JXA)

For a concrete example, I just want to reference the code Chris posted earlier on using System Events with Mac Mail. It works great.

See this post: