johnelm / node-jxa

Use your favorite node.js modules (and JS editor) for your Javascript OSX automation scripts
74 stars 4 forks source link

wrap entire script in a try/catch, and $.exit(1) on error #28

Closed johnelm closed 6 years ago

johnelm commented 6 years ago

currently node-jxa will exit with a status of 0, even if something goes wrong.