3 ms·
A, and by the way. Inevitably with a decent and widespread language you want to use third-party libraries, especially seeing as there are thousands upon thousan
by aasasd 5y ago
A, and by the way. Inevitably with a decent and widespread language you want to use third-party libraries, especially seeing as there are thousands upon thousands of them by now. Well, apparently you can load ‘compiled’ .scpt libraries—presumably done in either AppleScript or Javascript—but you can't just load a JS module from a file. There's a project that wraps JXA and uses Browserify to cram additional libraries down JXA's throat by merging them with the main script: https://github.com/johnelm/node-jxa https://github.com/johnelm/node-jxa