JavaScript for OS X Automation
I found this nice simple, contrasting comparison of syntax from the last discussion about this (thought it would be worth sharing).Here is some of the new JavaScript syntax:  Mail.outgoingMessages.whose({subject:'JavaScript'})

Here is what it looks like in AppleScript    tell application "Mail"
        set msgs to every outgoing message whose subject is 'JavsScript'
    end tell

While the AppleScript sounds logical, the JavaScript syntax just feels so comfortable and familiar (obviously).