Package Exports
- run-applescript
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (run-applescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
run-applescript 
Run AppleScript and get the result
Install
$ npm install run-applescript
Usage
const runApplescript = require('run-applescript');
(async () => {
const result = await runApplescript('return "unicorn"');
console.log(result);
//=> 'unicorn'
})();
API
runAppleScript(script)
Returns a Promise<string>
with the script result.
runAppleScript.sync(script)
Returns a string
with the script result.
Related
- run-jxa - Run JXA code and get the result