I am trying to create an AIR application to register the use of the application, and the only easy way to get information from the system using AIR is to use command line tools and clear stdout .
I know about tools like top and ps for OS X, but none of them seem to tell me which application / window is active, maybe I shouldn't even look for processes? For my logging purposes, I would like to get the name and title of the current active window (and application) as a launch.
I'm primarily interested in OS X, but it would be great to have Windows and Linux equivalents in the future too.
If there are no such tools yet, it would be great to get some pointers on how to create them. I haven't programmed the OS level yet, but I think creating a command line tool should be one of the easiest things to do (completely ignoring the GUI framework).
dain source share