{"name":"run-applescript","version":"5.0.0","description":"Run AppleScript and get the result","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/run-applescript.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["macos","mac","applescript","osascript","run","execute"],"dependencies":{"execa":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"4a17f4d1e49e1f29b6f484d127d007097c2f8274","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript#readme","_id":"run-applescript@5.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==","shasum":"e11e1c932e055d5c6b40d98374e0268d9b11899c","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-5.0.0.tgz","fileCount":5,"unpackedSize":3505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRNbOCRA9TVsSAnZWagAAaicP/1G/znGg5/mPfWzeKXcw\nWmPqjijO1wayUh+9LovGu1n0fdmPSageWloTvR4COFZcPki7NaAh2oh01dpd\nY2PIqgUWomgyUhGDAYOYUbzxbcMExtbpwkGNgjgQ9I77YxmKshpCsZ9J5oUs\nLeNY2FFWCBG4OskKO3pWSiOJGz8Kw+aBZCi5BP7FboYnWyGnqXZvbftYZpe4\nQeeBZldiIbGo6H3q/jI+Ftop5aXWQvh7DRw2ndn28kg3Ntjufvy6q9IAhRoG\ngqFe0nAr9v7+wEE0e/kdiYy9taX9rkS7KnGR3EsobJnFWmISD7OI0ENOq9WA\nctFfkbwfl+eGjabErO2YLb/GjoeuYpr8gQm5YQPRNlgbzJotXLBFL/GD5Kan\nqVxE/tf92QmVyAUl2doyvEtIDBH1ULOnNKLsjdyX4Q4Nh48IVS95yVjwJ4SR\nUSRyE0tGgxTHjDrKsC2+1gPWS2NAG2fGWytSU6K8LSfNzGjSarhDyGoVxwFj\nr/WTzrU1Fyl05CGbpA/5WluEa7NBVl4/4Nwn/1lJL+cNjJDNZxn5cZH+31dk\nDBDLDRf7MqHTJsJFKi3IylvltixmCx7S9JcX2oIgPSGupV6FPkuIv/C7Otd0\n+nH48yO45mq+qa/GthAAc6ZxIyU6tZCtBcpfWLm7+U8Yq/T5/D8dwlboSfzx\na4VV\r\n=Y2hu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGh5SCLc9Wq2OEOuV0XfoeffOboawFLZJwGch6rDrJ7AiAYeDBwvbaHNl21Hprm6ZPe52HpzAVJVG6krEbPNMhe1g=="}],"size":1665,"noattachment":false,"key":"/run-applescript/-/run-applescript-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-applescript_5.0.0_1615124173695_0.7838181689715296"},"_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":1615124173845,"_cnpm_publish_time":1615124173845,"dist-tags":{"latest":"7.1.0"}}