JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9991345
  • Score
    100M100P100Q286812F
  • License MIT

Run AppleScript and get the result

Package Exports

  • run-applescript

Readme

run-applescript

Run AppleScript and get the result

Install

$ npm install run-applescript

Usage

import {runAppleScript} from 'run-applescript';

const result = await runAppleScript('return "unicorn"');

console.log(result);
//=> 'unicorn'

API

runAppleScript(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