HckApm/node_modules/run-applescript
minicx 99e5f883a3 second commit 2023-12-23 14:56:27 +03:00
..
node_modules second commit 2023-12-23 14:56:27 +03:00
index.d.ts second commit 2023-12-23 14:56:27 +03:00
index.js second commit 2023-12-23 14:56:27 +03:00
license second commit 2023-12-23 14:56:27 +03:00
package.json second commit 2023-12-23 14:56:27 +03:00
readme.md second commit 2023-12-23 14:56:27 +03:00

readme.md

run-applescript

Run AppleScript and get the result

Install

$ npm install run-applescript

Usage

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.

  • run-jxa - Run JXA code and get the result