{"name":"run-applescript","version":"3.1.0","description":"Run AppleScript and get the result","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/run-applescript.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["macos","mac","applescript","osascript","run","execute"],"dependencies":{"execa":"^0.8.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"3ee47e1ead637fcb48f1ffb16f166554ed24c757","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript#readme","_id":"run-applescript@3.1.0","_shasum":"58865edbcc92b9644a330c4bfadedf5e26588c5d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"58865edbcc92b9644a330c4bfadedf5e26588c5d","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-3.1.0.tgz","integrity":"sha512-q106N8COpi6B5XLdytazWqnCW7TaLFYsyDYsOtuBWnlPs5rKqd4Hl2h75fSxQOF24HUPBAoSBmrk1xBD3t2lVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ77iet5X9cIpUBgId1r3yvahBSs9Fua6s5QmayzwzTwIhAPwCBVRSQrcl6xLda9x/w7zdbQh5/KDKu4ofpKG0nx5M"}],"size":1595,"noattachment":false,"key":"/run-applescript/-/run-applescript-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-applescript-3.1.0.tgz_1514244091938_0.06733358954079449"},"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":1514244092785,"_cnpm_publish_time":1514244092785,"dist-tags":{"latest":"7.1.0"}}