Mac OS X pmset API

时间:2016-02-12 19:29:12

标签: macos

Is there an API to query values displayed by pmset? I don't want to call pmset using an NSTask utility. Even though it seems doable but it's probably prone to a few errors across different versions of OS X (avoiding system utility output parsing).

I want to get values from pmset -g assertionslog if at all possible. Any pointers?

0 个答案:

没有答案