@marionebl/run-applescript

Run AppleScript and get the result

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
591Mar 7, 2021Aug 18, 2014Minified + gzip package size for @marionebl/run-applescript in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.