@expo/osascript

  • Version 2.0.30
  • Published
  • 21.9 kB
  • 2 dependencies
  • MIT license

Install

npm i @expo/osascript
yarn add @expo/osascript
pnpm add @expo/osascript

Overview

Tools for running an osascripts in Node

Index

Functions

function chooseAppAsync

chooseAppAsync: (listOfAppNames: string[]) => Promise<string | null>;

    function chooseEditorAppAsync

    chooseEditorAppAsync: (preferredEditor?: string) => Promise<string | null>;

      function chooseTerminalAppAsync

      chooseTerminalAppAsync: () => Promise<string | null>;

        function execAsync

        execAsync: (script: string | string[], opts?: any) => Promise<string>;

          function isAppRunningAsync

          isAppRunningAsync: (appName: string) => Promise<boolean>;

            function openFinderToFolderAsync

            openFinderToFolderAsync: (dir: string, activate?: boolean) => Promise<void>;

              function openFolderInTerminalAppAsync

              openFolderInTerminalAppAsync: (
              dir: string,
              inTab?: boolean
              ) => Promise<SpawnResult>;

                function openInAppAsync

                openInAppAsync: (appName: string, pth: string) => Promise<SpawnResult>;

                  function openInEditorAsync

                  openInEditorAsync: (
                  pth: string,
                  preferredEditor?: string
                  ) => Promise<SpawnResult>;

                    function openItermToSpecificFolderAsync

                    openItermToSpecificFolderAsync: (dir: string) => Promise<SpawnResult>;

                      function openTerminalToSpecificFolderAsync

                      openTerminalToSpecificFolderAsync: (
                      dir: string,
                      inTab?: boolean
                      ) => Promise<SpawnResult>;

                        function safeIdOfAppAsync

                        safeIdOfAppAsync: (appName: string) => Promise<string | null>;

                          function spawnAsync

                          spawnAsync: (script: string | string[], opts?: any) => Promise<SpawnResult>;

                            Package Files (1)

                            Dependencies (2)

                            Dev Dependencies (0)

                            No dev dependencies.

                            Peer Dependencies (0)

                            No peer dependencies.

                            Badge

                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@expo/osascript.

                            • Markdown
                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@expo/osascript)
                            • HTML
                              <a href="https://www.jsdocs.io/package/@expo/osascript"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>