{"name":"run-applescript","version":"7.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":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["macos","mac","applescript","osascript","run","execute"],"devDependencies":{"ava":"^6.0.1","tsd":"^0.30.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"9db60e8a8fa7db46534c3c8a05c0f58135280ebb","bugs":{"url":"https://github.com/sindresorhus/run-applescript/issues"},"homepage":"https://github.com/sindresorhus/run-applescript#readme","_id":"run-applescript@7.0.0","_nodeVersion":"18.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==","shasum":"e5a553c2bffd620e169d276c1cd8f1b64778fbeb","tarball":"http://registry-npm.ywwl.com/run-applescript/download/run-applescript-7.0.0.tgz","fileCount":5,"unpackedSize":5002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcNBXzk4caiwQVnjBRJNpAvlgol/6PKoa4/Hp0Zg0iCAIgUwr20L7MUYdgF+vD1VVd36xjYTs9JJ3E6eSc6lwBnbE="}],"size":2081,"noattachment":false,"key":"/run-applescript/-/run-applescript-7.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_7.0.0_1702941411969_0.12893780039970726"},"_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":1702941412202,"_cnpm_publish_time":1702941412202,"dist-tags":{"latest":"7.1.0"}}