Kargi-Sitesi/node_modules/run-applescript
2024-11-03 21:30:09 -05:00
..
node_modules Deployed the page to Github Pages. 2024-11-03 21:30:09 -05:00
index.d.ts Deployed the page to Github Pages. 2024-11-03 21:30:09 -05:00
index.js Deployed the page to Github Pages. 2024-11-03 21:30:09 -05:00
license Deployed the page to Github Pages. 2024-11-03 21:30:09 -05:00
package.json Deployed the page to Github Pages. 2024-11-03 21:30:09 -05:00
readme.md Deployed the page to Github Pages. 2024-11-03 21:30:09 -05:00

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