Support for JavaScript for Automation (JXA) on Mac?
I'm wondering if I can use WebStorm to write JavaScript for Automation scripts? I am admittedly new to WebStorm, but I already much prefer it over using the Script Editor. Has anyone tried to get JXA scripts to run in WS? I understand that there is a command-line tool (osascript) that can run JavaScript by using the -l command line option.
I have dug and dug and simply can't find an easy way to run JXA scripts with anything other than Script Editor. Any assistance is appreciated!
J
Please sign in to leave a comment.
WebStorm doesn't provide any support for this... Setting up the osascript as external tool in Preferences | Tools | External Tools or running shell scripts with the corresponding run configuration (https://www.jetbrains.com/help/idea/shell-scripts.html) seems to be the only way to go
See also https://github.com/johnelm/node-jxa - you may find this package helpful
Thank you for the info!