7.0.0 • Published 5 months ago

run-applescript v7.0.0

Weekly downloads
10,645
License
MIT
Repository
github
Last release
5 months 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_sampleglobal_components_assignmentjordy-frijters-test-libgriffin-ui-libraryiterm2-tab-sethong1-utilsmac-sudo-promptmangudinlagirajin@blusalt-sdk/react-native-blusalt-document-verification@brandung/style-guide@brantalikp/rn-resize@baolong281/gsplat@cs6/react-native-test-native-view-library@extrieve_technologies/quickcapture_react_native@georgesg/arc-cli@juanaraneta/dept-central-lib-client@jabatoforever/react-tw-datepicker@lehuyaa/my-assetsjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarerror-dialogextssframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newfmslext-shootexpo-renavigatefawaterak-online-paymentfawatrak-online-paymentfinder-pathflickjsfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphagamification-integration-newgaurav-react-native-loopgerimismalamseningenz-native-elementsosx-trashosx-volosx-quitohmymnpatepangdeuikarma-safari-applescript-launchernuxtpaginationsnight-shiftnative-modal-damage-vehiclenew-awesome-4321network-link-conditionermtva-teleport-toolmacreloaderpileuleuyanteapnm-yph-react-native-custom-componentsmnaddonmnaddon-litemnaddon4minisimphone-call-passphlowraycast-toolkitqsdevproject-wajs-dvquickcapture_react_nativereact-native-custom-image-carouselreact-native-ctp-odpreact-native-dimensions-layoutreact-native-ghn-ekycreact-native-fedlight-dsmreact-native-basic-appreact-native-basic-screenreact-native-animate-textreact-native-android-video-player-viewreact-native-awesome-module-latestreact-native-awesome-android-123react-native-awesome-android-123-zeotapreact-native-bleccs-componentsreact-native-build-vesion-getterreact-native-bridge-packagereact-native-chenaarreact-native-conekta-card-tokenizerreact-native-components-designsedanbosokrn-agora-ios-mreactnativelyreact-native-rabbitmq-allreact-native-return-usb-data
7.0.0

5 months ago

6.1.0

1 year ago

6.0.0

3 years ago

5.0.0

3 years ago

4.0.0

5 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.0

8 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago