JavaScript for Automation Cookbook JavaScript for Automation is a new feature in OS X Yosemite. It lets you control applications and the operating system using JavaScript language. Table of Contents Foreword Contributions Welcome Conventions Used in This Cookbook AppleScript Equivalent Code Examples Coding Style Using JavaScript for Automation The Easiest Way Running the REPL (read-eval-print-loop