|
1 zi în urmă | |
---|---|---|
.. | ||
index.d.ts | 1 zi în urmă | |
index.js | 1 zi în urmă | |
license | 1 zi în urmă | |
package.json | 1 zi în urmă | |
readme.md | 1 zi în urmă |
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.
Type: AbortSignal
An AbortSignal that can be used to cancel the AppleScript execution.
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.