Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Tracking front most app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Tracking front most app
Authored by: MartySells on Mar 16, '05 10:58:52PM
Great idea! I did a little googling and found some Applescript bits which return the front most app (FMA) and modified the orignal script to support a -a option to include the FMA in the log.

Download with
curl -O 'http://marty.feebleandfrail.org/macosxhints/idlemonitor/idlemonitor2.sh'
Rob will hopefully mirror this one as well.

I tried to make the Applescript part as robust as possible, but you probably need to run this as root since it will fail if the user it's running as is not the same as the logged in user or root. Some intersting FMA names: ScreenSaverEngine, loginwindow, SecurityAgent.

-m

[ Reply to This | # ]