{"name":"run-applescript","version":"4.0.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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["macos","mac","applescript","osascript","run","execute"],"dependencies":{"execa":"^3.2.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.10.0","xo":"^0.25.0"},"gitHead":"1dceebfc2eb6820c7d2b237ecda6b0c7848f2ead","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript#readme","_id":"run-applescript@4.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-1qrO7h0ZpJIpZ7xt6kc7W2IWCkBhAjg3yVTPX4/r4jPWD3w3t41vohLxPw8AMWt3wRkiFoBPFu7HUlgFm9jw5w==","shasum":"74694b2bac248797f367c51db93e482a8cb74f27","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-4.0.0.tgz","fileCount":5,"unpackedSize":3563,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdtm7rCRA9TVsSAnZWagAAMT4QAJdE/UIfCqj/VXNBkcuA\nKMtL/JQ6kv81DsdvOqmvjesih4UAFd/JT4EfJQzzugflKzsVB7wZml5UgIQq\nhs8GPUQxrAMhBrwplUdrEe6oEvJjEn0MfgYOo3NrTtq7PSbUCYgDzimH2S8Y\n1lq4p5bAj5JeXmi5mSDAxDsgZelJw+jWXZpAP5XroVzYYsRUk3SP732tkPWO\nKqRyUymNK6oKcnObTn7l1h3l7d72SHJr/+sjnt7pVG9630S4jAmmbHHczIEy\nSB9GCHXRx4FDXQ22zjZFDGgiw8OEy1vtI8ynXIo/0wQs49IOyCnhtXbCtcFz\nvefw4xZYkTJcSOtgbFxf1VJGOgpflvH01ImY4/aKb4BSvCz3bPYmZaJbGWIm\nOF1gS9fgHfEehogvpVwk4xmEE2mCwHSs4hZv1axxt/Vcz+dMiAxN7vshy7aL\nApFtL6IF4AojDsZAwFGQP2BRFtjhN77NTKR+nhVkTrRzrLkWys7WgUcluBHu\nfuL0fVk51kSc9F7LWuGSS4ZMNzYjcuHv7XHr1pjA+RXCVxYQbmrjFTEgqA1m\n0L/0CkTL+XB68/xIQ5lCcTgoHqgMEj1p18PYeO7GmD+yLJbzs38vdCJKJdik\nj2wiknbEhZ7ZR1r6lDnNfKzurbX91KUGatfWcDGwOLF29avsJjzkYjCY5fq+\nfqVq\r\n=zwWo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCySl3Nnb8vRhGt0fW9nOEVB6CwU/4PwdE76mlFNUqAsQIgBngAU2jI/Vj2Nu2m6cMVK2smd/uSgXK7VBDT4RadC/U="}],"size":1741,"noattachment":false,"key":"/run-applescript/-/run-applescript-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-applescript_4.0.0_1572237034839_0.3828070473737888"},"_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":1572237034937,"_cnpm_publish_time":1572237034937,"dist-tags":{"latest":"7.1.0"}}