Shell scripts that use JavaScript for Automation in Mac OS X (JXA) to do things very specific to my work setup.
If you're not me, you'll find this only useful as a reference, you most likely won't be able to use these scripts on your own machine.
The JavaScript source code for the scripts are in the src folder. They are in ES6 (ECMAScript 2015), to be compiled into JXA scripts. The compilation is done using webpack.
To compile, you need to:
- Have Node.js 4.0.0 or greater installed
- Have webpack installed as a global module (
npm install -g webpack
)
You can then simply do an npm install
to compile the JXA scripts, which are then located in the bin
directory and
can be executed directly from the command line.
I use Karabiner to execute my JXA scripts using keyboard shortcuts on an Ideazon Fang keyboard.
You can find my Karabiner configuration file here: private.xml
JXA resources on the web: