{"name":"run-applescript","version":"1.0.0","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"},"os":["darwin"],"scripts":{"test":"node test.js"},"files":["index.js","cli.js"],"keywords":["osx","mac","applescript"],"devDependencies":{"ava":"0.0.4"},"gitHead":"a5b1072d6d66c65c4356affffe4425cc05d8806a","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript","_id":"run-applescript@1.0.0","_shasum":"8e5748a381d988132040f10f1a0f234d8e24cea7","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"8e5748a381d988132040f10f1a0f234d8e24cea7","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-1.0.0.tgz","integrity":"sha512-yJU2jiWT5jLlkI2X7QVUBURp9FAlbDknHN6qa4+31Z7VLMDknX05rc24V0T8AI8go4HKzZa6VulE+e7iSIXdzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSojvoNfszpQ2AOjNnlczofxg9IIvSEL7/kctv1c8BUgIgTBRGhxCrfrFLIxz7U9n8DwtVnWYEUo+hiUNt7KQqCPk="}],"size":785,"noattachment":false,"key":"/run-applescript/-/run-applescript-1.0.0.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":1408385358109,"_cnpm_publish_time":1408385358109,"dist-tags":{"latest":"7.1.0"}}