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-mcparchlibrary@ponchodien/react-native-printer-imingenz-native-elementsgerimismalamseninframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgaurav-react-native-loopgamification-integration-newdomaincomponentdogandev-simple-toasterror-dialogext-shootexpo-renavigatefawaterak-online-paymentfawatrak-online-paymentfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphaflickjsfmslfinder-pathextss@a1um1/pwa-install128981semzub@chrimerss/apple-mcp-enhanced@baolong281/gsplat@brandung/style-guide@brantalikp/rn-resized-g-component-librarycustom-react-app234delivery-platformcurrent-pathdemo-test-scrnauto-terminal-profilebundle-idbundle-namedisplay-notificationdo-not-disturb@adatechnology/react-native-android-getnet-pos@ahmed-hairon/sharing@ahmed_shaban123/react-native-currencyinput@aruntestpayment/react-native-payu-payment@ali5049/react-native-buttons@ajorquera/components@amiruldev/wajs@aviinash_jha/react-native-test_multiplyjawwy_library_newjawy_library_v1gamification-jawwy-library
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

10 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