GithubHelp home page GithubHelp logo

imclab / macwintracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from katylava/macwintracker

0.0 1.0 0.0 131 KB

Mac-only script for tracking active window. Records application name, window title, and extra data such as a URL or file path. Logs results as JSON, which you can parse however you pleaseth.

macwintracker's Introduction

Note: No longer developed because http://appscript.sourceforge.net/status.html

Description

Mac-only script for tracking active window. Records application name, window title, current chat status (because I usually specify what I'm working on via my status), and, when possible, extra data such as a URL or file path. Logs results as JSON, which you can parse however you pleaseth.

Installation

Requires py-appscript

Install

$ git clone git://github.com/katylava/macwintracker.git
$ cd macwintracker
$ ./setup.sh <interval>

The active window will be logged every <interval> seconds. You can run setup.sh again to change it.

To stop wintracker

$ cd ~/Library/Application\ Support/com.katylavallee.wintracker
$ ./uninstall.sh

How It Works

A launchd agent runs the main tracking script on load and pipes the output to a logfile. Another launchd agent rotates and dedupes the logs once a day.

Output is stored as JSON in ~/Library/Logs/com.katylavallee.wintracker. Parse at will.

Adding support for more applications

I'm adding applications as needed. If you fork the project and add apps you use, submit a pull request.

Future

  • Tools for parsing the log data... any ideas?
  • Instead of putting logic for all applications in wintracker.py, create a plugin system
  • Add parameters to setup script to allow user to configure log rotation interval

macwintracker's People

Contributors

katylava avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.