Skip to content
Permalink
9bfb9ba527
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
github-actions[bot] Update checked-in dependencies
Latest commit 40a500c Jul 13, 2023 History
0 contributors

Users who have contributed to this file

34 lines (20 sloc) 551 Bytes
# run-applescript
> Run AppleScript and get the result
## Install
```
$ npm install run-applescript
```
## Usage
```js
import {runAppleScriptAsync} from 'run-applescript';
const result = await runAppleScriptAsync('return "unicorn"');
console.log(result);
//=> 'unicorn'
```
## API
### runAppleScriptAsync(script)
Returns a `Promise<string>` with the script result.
### runAppleScriptSync(script)
Returns a `string` with the script result.
## Related
- [run-jxa](https://github.com/sindresorhus/run-jxa) - Run JXA code and get the result