http://qs321.pair.com?node_id=572892


in reply to Detecting idle time on Mac

man getloadavg
may help
Boris