osascript-promise
Execute Applescript from Node via Promises. A wrapper around node-osascript by @fweinb. Pairs well with tj/co.
var osascript =
Works using any-promise, so native promises, bluebird, rsvp, when, and q are all supported without any changes to your code.
Usage
This promisifies the execute
method from node-osascript.
osascript(command[, variables])
Pass your Applescript in via the command
variable. Multiline scripts work well using the ES6 template string syntax:
Applescript variables can be passed to the script as an object in the second argument:
License
MIT, see LICENSE.md for details.