{"name":"run-applescript","version":"3.2.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.10.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"d61f10c1ee39d59835bfa6fd96488ca8c4cfec77","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript#readme","_id":"run-applescript@3.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Ep0RsvAjnRcBX1p5vogbaBdAGu/8j/ewpvGqnQYunnLd9SM0vWcPJewPKNnWFggf0hF0pwIgwV5XK7qQ7UZ8Qg==","shasum":"73fb34ce85d3de8076d511ea767c30d4fdfc918b","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-3.2.0.tgz","fileCount":4,"unpackedSize":2892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUcs3CRA9TVsSAnZWagAAMcQP/1kgqqBJBz7Uq0QDTEs8\ncUj6AN3C+FoHxwrLCJXKN5zIlCHEMzxPRHyaXatscb+xgkScw8SEzRyFfZEG\ncDMpZJAqJKO3Cis/Ns6kzXbe5ioVbwCYrOb1kV4ia7uSBYqKEahL+gXdkM7o\n8JzunidL15QaZTGzXAfTHMWHciYSNTAhBadxIokPvwFXKd8jdrPWb8nlAth+\nWXDnFVjOHKjw2o6AwUVd9qbYcQm26O/WJSK9MnP1hbMbCZUC40TP8BOd1peq\nvmP1tWTaFLLtoIXbovUxKW3wJVtdqViPi0MKp0m5bRNdJuuFQ9sTl0GAtoIc\no2IKR8nG73gFNZ6S+zbF4NlwTG9IoUbpuZQm1yThA2FZuMu45YszM1mi339G\nuwXAUiuu6/QXSneBfNy9fTFMey+q0PQcHG8BFD9LYkySGEl260gHpcPl5C8H\n/tMP/fxtvdD67QM4cT8R1q+Oh1P+PG37bxD1bdttNkuye2+a1Fg05InKe6PI\nXflB6wkmvpxHzcAZdjRN08Nyg7rPxDHqUp3wCdSlCBlW4gpPL1WSJpuwLrwx\nO5tsFxwVlAhwk8g4HmJSzj+pC7VMcg/eXnQmiDWXySA177X+ugNgdnbVF3Hb\nS9yX5/zSTAS7YTGTOXrpkiZ9ThvlhuiepxzGxp1bqmIoOZjpnTx3vv0FK1Jh\n3EJA\r\n=EC2Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOUxqjwqtrFE3IWW3gLqPr5JEp9S/bJIGqtMPZhVr3TQIgPCiHYe0oTa+N7eC3UmK0e/ekeZtXQIwOG1bSMjTIDL4="}],"size":1591,"noattachment":false,"key":"/run-applescript/-/run-applescript-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-applescript_3.2.0_1532087095896_0.8587958888317604"},"_hasShrinkwrap":false,"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":1532087095985,"_cnpm_publish_time":1532087095985,"dist-tags":{"latest":"7.1.0"}}