macos-launch-application
v1.0.0
Published
Launch or kill applications on macOS.
Downloads
2
Maintainers
Readme
macos-launch-application
Launch or kill applications on macOS.
macOS 10.14.3 or earlier needs to download the Swift runtime support libraries. More Info Here.
Install
$ npm install macos-launch-application
Usage
const {launchApp, killApp} = require('macos-launch-application');
launchApp('com.sindresorhus.Dato');
killApp('com.sindresorhus.Dato');
API
launchApp(bundleId: string): Promise<true>
Tries to launch the app with the given bundle identifier. It will resolve to true if it succeeds, and reject with an error otherwise.
bundleId
The bundle identifier of the app
killApp(bundleId: string): Promise<true>
Tries to kill the app with the given bundle identifier. It will resolve to true if it succeeds, and reject with an error otherwise.
bundleId
The bundle identifier of the app
Related
- mac-focus-window - Focus a window and bring it to the front on macOS
- mac-windows - Provide Information about Application Windows running
License
MIT