Dong some learnin' about the osacompile command for using JS to write OS X apps/applets/automations etc. If you're on Yosemite (or greater):
- Download this here JavaScript file https://www.dropbox.com/s/r6bcw0xjykfqb8a/mycool.js?dl=0
- use yer handy terminal and run:
osacompile -l JavaScript -s -o MyCool.app mycool.js - That will create the "MyCool" App.
- Double click that dude and you should see a little mini app
btw: this is the same example app that I built in http://tylergaw.com/articles/building-osx-apps-with-js