@marionebl/run-applescript

3.0.0 • Public • Published

run-applescript Build Status

Run AppleScript and get the result

Install

$ npm install --save run-applescript

Usage

const runApplescript = require('run-applescript');

runApplescript('return "unicorn"').then(result => {
	console.log(result);
	//=> 'unicorn'
});

API

runAppleScript(script)

Returns a Promise<string> of the script results

runAppleScript.sync(script)

Returns the script results as string

Related

  • run-jxa - Run JXA code and get the result

License

MIT © Sindre Sorhus

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i @marionebl/run-applescript

Weekly Downloads

303

Version

3.0.0

License

MIT

Last publish

Collaborators

  • marionebl