JavaScript for OS X Automation by Example