7.0.0 • Published 2 years ago

run-applescript v7.0.0

Weekly downloads
10,645
License
MIT
Repository
github
Last release
2 years ago

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.

Related

  • run-jxa - Run JXA code and get the result
easy-select-rnastrid-appelectron-container-managerluminos-ui-core@everything-registry/sub-chunk-2691jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-librarymac-sudo-prompttabnabtest-library-123wirecast-controltest-zeo-collectvolvision-camera-plugin-face-detectorvantiq-reactcustom-react-app1custom-react-app2iterm2-tab-setkarma-safari-applescript-launcherjesh-calculationjordy-frijters-test-libimage-carousel-juan-correa-50hong1-utilsinstance-uimacreloadermangudinlagirajin@tlgeo/react-native-gdal@thinxviewx/core-rn@toiyabe/grapesjs-blocks-bootstrap-5@titani0us/airbrake@tomw2w/my-nuxt-layeranakketigaanaklanangteaanakwadontea@zotasys/nativeagent-get-agentalfred-ldocealfred-lingualeoalfred-reversoalfred-firefoxtabswitchalfred-ankiableton-css-helperadarshsinghal-editor-previewawesome-module-kdapple-mcparchlibrary128981semzub@chrimerss/apple-mcp-enhanced@a1um1/pwa-install@ahmed_shaban123/react-native-currencyinput@ahmed-hairon/sharing@adatechnology/react-native-android-getnet-pos@ajorquera/components@ali5049/react-native-buttons@amiruldev/wajsjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mmtva-teleport-toolreact-native-omental-frameworkreact-native-sixdee_test_libspo-term-for-mactehmusimhujanterminal-profiletransmit-2-ssh-config@baolong281/gsplat@brantalikp/rn-resize@brandung/style-guideyangtao-jsyarn-react-hook-formzekromzoominozubtesttoday@infinitebrahmanuniverse/nolb-run-@labiebhn_/react-native-multiplier@lehuyaa/my-assets@kgit/readability@kkoscielniak/arc-applescript-api@rbxts/tableutil2@react-native-ui-design/button@scott113341/github-to-omnifocus@ponchodien/react-native-printer-imin@sephriot/react-native-persistable-urimpd-parser-1mnaddonmnaddon-litemnaddon4minisimnazcamedia-mcpnative-modal-damage-vehicle
7.0.0

2 years ago

6.1.0

3 years ago

6.0.0

4 years ago

5.0.0

5 years ago

4.0.0

6 years ago

3.2.0

7 years ago

3.1.0

8 years ago

3.0.0

9 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.1

11 years ago

1.0.0

11 years ago