7.0.0 • Published 1 year ago

run-applescript v7.0.0

Weekly downloads
10,645
License
MIT
Repository
github
Last release
1 year 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-react@ahmed-hairon/sharing@cs6/react-native-test-native-view-librarycustom-react-app1custom-react-app2iterm2-tab-setkarma-safari-applescript-launcherjesh-calculationjordy-frijters-test-libjawwy_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@amiruldev/wajs@aviinash_jha/react-native-test_multiply@ali5049/react-native-buttons@baolong281/gsplat@brantalikp/rn-resize128981semzub@adatechnology/react-native-android-getnet-pos@brandung/style-guideyangtao-jsyarn-react-hook-formzekromzoominozubtesttoday@henrylin03/language-picker@idas1/ui-component-lib@georgesg/arc-cli@infinitebrahmanuniverse/nolb-run-@labiebhn_/react-native-multiplier@lehuyaa/my-assets@niksy/tv-shows-cli@extrieve_technologies/quickcapture_react_native@makp0/arc-cli@jabatoforever/react-tw-datepicker@kgit/readability@kkoscielniak/arc-applescript-api@juanaraneta/dept-central-lib-client@rbxts/tableutil2@react-native-ui-design/button@scott113341/github-to-omnifocus@ponchodien/react-native-printer-imin@npm_fluentco/adflow-react-native-sdk@sidghimire/react-native-mapbox-navigation@sephriot/react-native-persistable-uri@sridharetikala/react-native-rn-lib-custom-componentsmpd-parser-1mnaddonmnaddon-litemnaddon4minisimnazcamedia-mcpnative-modal-damage-vehicleori-bot-react-nativeosx-trashosx-quitosx-volotus-functional-developmentnuxtpaginationsohmymnpatepangdeuireact-native-android-video-player-viewreact-native-android-viewreact-native-dummy-viewreact-native-ctp-odpreact-native-custom-image-carouselreact-native-custom-poccomponentreact-native-custom-poccomponent-nextreact-native-dff-components-demo
7.0.0

1 year ago

6.1.0

3 years ago

6.0.0

4 years ago

5.0.0

4 years ago

4.0.0

6 years ago

3.2.0

7 years ago

3.1.0

7 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