|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| index.d.ts | %!s(int64=2) %!d(string=hai) anos | |
| index.js | %!s(int64=2) %!d(string=hai) anos | |
| license | %!s(int64=2) %!d(string=hai) anos | |
| package.json | %!s(int64=2) %!d(string=hai) anos | |
| readme.md | %!s(int64=2) %!d(string=hai) anos | |
Run AppleScript and get the result
npm install run-applescript
import {runAppleScript} from 'run-applescript';
const result = await runAppleScript('return "unicorn"');
console.log(result);
//=> 'unicorn'
Returns a Promise<string> with the script result.
Type: string
The script to run.
Type: object
Type: boolean\
Default: true
Change the output style.
When false, returns the value in a recompilable source form.
Returns a string with the script result.
Type: string
The script to run.
Type: object
Type: boolean\
Default: true
Change the output style.
When false, returns the value in a recompilable source form.