macos-manage-apps:在macOS上启动和终止应用程序

时间:2021-03-09 11:17:39
【文件属性】:
文件名称:macos-manage-apps:在macOS上启动和终止应用程序
文件大小:65KB
文件格式:ZIP
更新时间:2021-03-09 11:17:39
Swift macos-manage-apps 在macOS上启动和终止应用程序 如果您使用的是macOS 10.14.3或更早版本,则需要下载。 安装 $ npm install macos-manage-apps 用法 const { launchApp , terminateApp } = require ( 'macos-manage-apps' ) ; ( async ( ) => { await launchApp ( 'com.sindresorhus.Dato' ) ; await terminateApp ( 'com.sindresorhus.Dato' ) ; } ) ( ) ; 原料药 launchApp(bundleId: string): Promise 尝试使用给定的捆绑包标识符启动应用程序。 它将解析是否成功,否则拒绝并返回错误。 bundleI
【文件预览】:
macos-manage-apps-master
----.gitignore(1KB)
----Sources()
--------CheckApp()
--------LaunchApp()
--------TerminateApp()
----package.json(1KB)
----index.js(948B)
----.github()
--------workflows()
----readme.md(1KB)
----index.test-d.ts(347B)
----Package.swift(569B)
----yarn.lock(147KB)
----index.d.ts(1KB)

网友评论