osx - Which command line tools can I use to get the currently active application / window on each platform? -
I am trying to create an AIR application to log application usage and get information from the system with AIR The only easy way is using the command line tool and stdout is scrapping.
I know of tools like Top and ps for OS X, but none of them tell me which application / The window is active, maybe I should not even look for the processes? For my logging purposes I want to start the name and title of the current and active window (and applications).
I am mainly interested in OS X, but for Linux and even future Linux equivalent.
If such a tool is not present yet, it would be best to get some pointers how to make them. I have not done any OS level programming yet, but I think one of the easiest things to make a command line tool (to ignore the GUI framework completely)
Both of these questions are asking the same thing, unless I misunderstood your question . There should be a good start for OS X:
Comments
Post a Comment