Original Link: http://www.macstories.net/tutorials/getting-started-with-javascript-for-automation-on-yosemite/

One of the least heralded additions to OS X Yosemite was JavaScript for Automation. You can now write in JavaScript within the Script Editor application in order to script OS X actions, when previously you needed to learn AppleScript. This is great for people well versed in JavaScript who want to take more control over their mac.

Over at MacStories, Alex Guyot has an amazing overview of how to get started with JavaScript for Automation in Yosemite. If you know JavaScript and are a Mac user, you should definitely check it out.