{"name":"run-applescript","version":"6.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.1.1"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"361577fdb3cac6f022bf738e9fb2645c90c8a27f","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript#readme","_id":"run-applescript@6.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-6dIkCIEcnNepNYu0E5b/Q1vVEeslms8JzGHzHwU2AY1MFe2qXe6ULPABDw1t5/nQ7fIFXhuj+IvA6vDKN2XGWQ==","shasum":"86ef59a4581f4b56b1a5ced90ca0eb1b81bf0266","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-6.0.0.tgz","fileCount":5,"unpackedSize":3506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFRzLCRA9TVsSAnZWagAAp2MQAIadJMPygzbq8ParReCe\nFy2zPY1IqRuaWkBa7oAbm4zZGzALticqtd/Wxx8TwskbW/R0g+gQbN6Utwbt\nozwYlYMTZM54k9gI13rr/bSp/1OaG42HhUN4GzTEtP3JerIuPHN/17yCUG6d\nqGJqdCsiG/fyeq8e9X7Uel/wQwIKVB3mcPXlITVs1VyncyRF+M8yBAysDvUh\nSNyix4KtuOj/yh0MHESZKTGyGenhp5JMNjJPO8fzXQvbv3hbaKEkGk0vkECN\ncTFJSLPWNQdR8LWZGU3lQLb3dWdyrSUg72W+B7Fjsln2vynmJ7mhge2z5guF\nLXJcSms6a4eHlgbP0Oys2HcfCEFBH35ymBIN4d43S/HZIWtGyiJUJCmqZr0w\nh7zUgtJTSwOo5rFORC/vTnM18cEdjmInX4kNWlhDTrXHWasRPXpHJsrrNvv/\nJ7lBKyyTw5QOUcosOv0AVx441raeMaFrYV1upV7zhBXm2xHaz7CvstMJDdxM\ncSxuJwdfVm48VvQUNk+XCLe920AbOIFZCW3O4JFAZWIxY7OlnbRocrZ5zFlm\npVIfkcCjJgn9+xV4//4Cm9I0k9y6AL/tzlktjy16MVXxr1JrgNg2MTDrymZg\nh38aycl3uQtsEzUL6woADvAU/lYHXkjP54wEcGXD6I8k3nQejmJIIkwtyLTs\nQ+zB\r\n=cWPm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdIhu+VwPnJL9rN+5cYu06OceTfkd/x533Xl2T7WctJgIhANij8SdF84Mq+Mf4XbBab1ohdoB9tzHWSu3H+U/jB9dW"}],"size":1661,"noattachment":false,"key":"/run-applescript/-/run-applescript-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-applescript_6.0.0_1628773579007_0.6138042979769975"},"_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":1628773579159,"_cnpm_publish_time":1628773579159,"dist-tags":{"latest":"7.1.0"}}