aimpress-chatbot/node_modules/run-applescript
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00
..
index.d.ts Deploy bot to Azure 2025-04-27 19:55:19 +01:00
index.js Deploy bot to Azure 2025-04-27 19:55:19 +01:00
license Deploy bot to Azure 2025-04-27 19:55:19 +01:00
package.json Deploy bot to Azure 2025-04-27 19:55:19 +01:00
readme.md Deploy bot to Azure 2025-04-27 19:55:19 +01:00

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, options?)

Returns a Promise<string> with the script result.

script

Type: string

The script to run.

options

Type: object

humanReadableOutput

Type: boolean
Default: true

Change the output style.

When false, returns the value in a recompilable source form.

runAppleScriptSync(script, options?)

Returns a string with the script result.

script

Type: string

The script to run.

options

Type: object

humanReadableOutput

Type: boolean
Default: true

Change the output style.

When false, returns the value in a recompilable source form.

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