{"name":"run-applescript","version":"6.1.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"},"types":"./index.d.ts","gitHead":"a196e8e4606adc6cbbb8575487b19562d9f98398","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript#readme","_id":"run-applescript@6.1.0","_nodeVersion":"16.16.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-4sbn5dfGD41izkksKNcYuhIIQduzNp0+kGM+GqhXcHr9TFIMffkBAcPFCiwP0K7T2h85JWSdTJTMbm6R5mG3SQ==","shasum":"5d9c630366c6a3da3ff007e57e05c69de7d28bd2","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-6.1.0.tgz","fileCount":5,"unpackedSize":4761,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5V/TxDSLfT9hvSacFCzlBft8/D/IAqzuwIDDdkxteHAiA6J1FkT2ddSztIk5WpOFbrf7S77AhshoW7vbZKbM1b6Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl4b6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf2w/9FCyPHIIBO/zI+OefPiVQHeOswc/lFsbbdyjrH8peJ/UYKrqc\r\nRMRjAsfIYJ9udMRvdfbnzmWunb1Y4Vj/5dZL8/UB8pFUeBNWJFMrlCzZCwZP\r\nVBPFqCC+bG/BQOfD/2F0QkPh5qi6ZnmW8a5swHVYWJxHquUPnmgJFptGY1UA\r\np9ZJxV3DMwwFqnpk3JrZya2l7wiv3SPC3AdIPD2rYcHOltkmVxrD8rXOeiRc\r\nQVcctluAyBT7NtchJLC2rLIHXL+hiwkFnltsch8DfT6fxkjCcL4ZFlNS0abw\r\n9M8NuTU2P68SqAwABX3PB4FZjV+QPtB32qfaXSaHZjC1GoJyBLXWCl1YF8ji\r\nh53gtN4XIdiDYGMx6xpIg3/2hYcXybekQpwlDMX39aSFR9xR4adKM2LAocFP\r\nkZM0NRVUTYSd6+TITHcv+hJqlHfAduuj8L8oTFm/r7TRbsOrufMwbXwssbuD\r\nDy4RLDjHF89kBDPrpoHH6md/8fip1dwUYcEKHjMjW0j57aggn3KPqnHTlxIL\r\ndG1luqrD3ZhhuYJAd/YWQm8xB+izDAnxsakyELKB7R1M+V7s2ce0b9KhZeMp\r\nBAQ1Vw2SXK3hD+ckuUjlpNgMRS2ybNljpLaWsx/XrU2rM20AtYa012ABkcGk\r\nLpanOWsGhSUir3MHXP6pODL+1VUY54pTVyc=\r\n=vXTf\r\n-----END PGP SIGNATURE-----\r\n","size":1955,"noattachment":false,"key":"/run-applescript/-/run-applescript-6.1.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.1.0_1670874874495_0.5935398851940783"},"_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":1670874874638,"_cnpm_publish_time":1670874874638,"dist-tags":{"latest":"7.1.0"}}