@cjser/run-applescript__v5_0_0
v5.0.0-cjser.2
Published
Run AppleScript and get the result
Downloads
90
Maintainers
Readme
run-applescript
Run AppleScript and get the result
Install
$ npm install run-applescriptUsage
import {runAppleScriptAsync} from 'run-applescript';
const result = await runAppleScriptAsync('return "unicorn"');
console.log(result);
//=> 'unicorn'API
runAppleScriptAsync(script)
Returns a Promise<string> with the script result.
runAppleScriptSync(script)
Returns a string with the script result.
Related
- run-jxa - Run JXA code and get the result
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/run-applescript
