{"name":"run-applescript","version":"2.1.0","description":"Run AppleScript and get the result","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/run-applescript"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["osx","mac","applescript","osascript","run","execute"],"dependencies":{"pify":"^2.2.0","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"0c6d00faf12ddae6b7205753d36a0f22d73639e9","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript","_id":"run-applescript@2.1.0","_shasum":"3bff2ccf95b6ceacb49723e550f00371d618510d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3bff2ccf95b6ceacb49723e550f00371d618510d","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-2.1.0.tgz","integrity":"sha512-8b8AYEtVb1jKsoTHvmdoQ+QN3aHMQdw7YtaHZEzIhJouLjCz71cD2bsSCYq7Xf3yG5GnldFUtA064S1RkmHQsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAo1hYBOgXoXTVf2t1LTQ0PsKxh2NrbdNkJTxGx1kzL1AiArOhskpAg2T+c8rmVesDfTnaaEUyps4DlLTGyZCaUQFg=="}],"size":1597,"noattachment":false,"key":"/run-applescript/-/run-applescript-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# run-applescript\n\n> Run AppleScript and get the result\n\n## Install\n\n```sh\nnpm install run-applescript\n```\n\n## Usage\n\n```js\nimport {runAppleScript} from 'run-applescript';\n\nconst result = await runAppleScript('return \"unicorn\"');\n\nconsole.log(result);\n//=> 'unicorn'\n```\n\n## API\n\n### runAppleScript(script, options?)\n\nReturns a `Promise<string>` with the script result.\n\n#### script\n\nType: `string`\n\nThe script to run.\n\n#### options\n\nType: `object`\n\n##### humanReadableOutput\n\nType: `boolean`\\\nDefault: `true`\n\nChange the output style.\n\nWhen `false`, returns the value in a [recompilable source form](https://ss64.com/osx/osascript.html).\n\n### runAppleScriptSync(script, options?)\n\nReturns a `string` with the script result.\n\n#### script\n\nType: `string`\n\nThe script to run.\n\n#### options\n\nType: `object`\n\n##### humanReadableOutput\n\nType: `boolean`\\\nDefault: `true`\n\nChange the output style.\n\nWhen `false`, returns the value in a [recompilable source form](https://ss64.com/osx/osascript.html).\n\n## Related\n\n- [run-jxa](https://github.com/sindresorhus/run-jxa) - Run JXA code and get the result\n","publish_time":1447530113537,"_cnpm_publish_time":1447530113537,"dist-tags":{"latest":"7.1.0"}}