{"name":"run-applescript","version":"1.0.1","description":"Run AppleScript and get the result","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/run-applescript"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js","cli.js"],"keywords":["osx","mac","applescript"],"devDependencies":{"ava":"0.0.4"},"gitHead":"87160a82c3f5b8c655dbdedad99da6af0722ff93","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript","_id":"run-applescript@1.0.1","_shasum":"9f0be74a910dcea702caba65f747563706e86fe2","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"9f0be74a910dcea702caba65f747563706e86fe2","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-1.0.1.tgz","integrity":"sha512-JGWKTyIToNdWDM8PKaa96DBe5A6rO/rqSRr6npZwpjC8qxSHFH8pI8Cc0aw2o5+90rfcJtrYsDVkzwFyFxSMxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIdsocyaA1tNsgr/c1b2/57B0bNzm8XasDYGZk0CM+3AiEA1CesSML7uEl/drwCwDiyvM35FploWl+0YYM/3/bmLL8="}],"size":776,"noattachment":false,"key":"/run-applescript/-/run-applescript-1.0.1.tgz"},"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":1408386698448,"_cnpm_publish_time":1408386698448,"dist-tags":{"latest":"7.1.0"}}