There is a bright future for JavaScript on OS X: write automation scripts in JavaScript to improve your workflow
Michael Crump gives several examples including:
- Sending an email message through Mail
- Displaying dialogs
- Use text to speech
- Launch and manipulate Safari
Read more from the source: Telerik Developer Network