{"name":"run-applescript","version":"2.0.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":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"9b9ee92263d8a1908e389a45c463c36f3539f6f0","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript","_id":"run-applescript@2.0.0","_shasum":"16300884ffc80d81ed33afa480ab390ea001f8f8","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"16300884ffc80d81ed33afa480ab390ea001f8f8","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-2.0.0.tgz","integrity":"sha512-9PwD+kALRH6gH7UqUxChE6554gSMKnQWF+h/6WMWGOCl4fwxicuWL+TpraogQKYJQnlTLXNHfM1JIFmlwQORSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGXtPeUjPrShOsbUy7yin8+rykNEIyp5olxTmKXDjGugIhANccKzoy54IRf0zf/kQqNUOi3fuV46WhatZxkdMXf+zM"}],"size":1592,"noattachment":false,"key":"/run-applescript/-/run-applescript-2.0.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":1444069050532,"_cnpm_publish_time":1444069050532,"dist-tags":{"latest":"7.1.0"}}