Skip to content

Shell scripts that use JavaScript for Automation in Mac OS X (JXA) to do things very specific to my work setup

Notifications You must be signed in to change notification settings

pahund/patricks-little-jxa-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patrick's Little JXA Helpers

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.

Installation

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.

Use With Karabiner

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

Further Reading

JXA resources on the web:

About

Shell scripts that use JavaScript for Automation in Mac OS X (JXA) to do things very specific to my work setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published