其他

isHadPrivilege

该方法只适用于在macOS下执行,用于判断uTools是否拥有辅助权限,如果没有可以调用API方法requestPrivilege请求

utools.isHadPrivilege()
  

requestPrivilege

该方法只适用于在macOS下执行,该方法调用后会弹出窗口向用户申请辅助权限。

utools.requestPrivilege()
  

getPath

utools.getPath('temp')
  

你可以通过名称请求以下的路径: