Is there a way to get current active app on Mac OS X using shell script
<p>I want to run a CRON job which will identify currently active window and log it to some file. Is there a way through shell script to identify the currently active window on Mac?</p>