1. 首页
  2. 数据库
  3. 其它
  4. macos manage apps:在macOS上启动和终止应用程序 源码

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

上传者: 2021-04-19 22:09:08上传 ZIP文件 65.02KB 热度 27次
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
下载地址
用户评论