Scriptlet for Aquamacs support in Slife

I've started using Slife to track my time on various projects. It's a pretty cool OSX time tracker and visualisation tool - a picture is worth a thousand words, they say:

Slife in Month View

Slife in month view - each dot represents a moment of activity in your day; hover for basic details, click to visit the relevant email, webpage, file etc.

Anyway, my native environment is basically Aquamacs these days, so I knocked together a scriptlet interface which allows Slife to extract information about what you're doing in Aquamacs. Here it is - take it, do what you will (I hear they call that a BSD license)

Wrote a couple of methods - one using emacsclient (can extract more information this way) and one using pure applescript (requires you turn on an accessibility option in system prefs). I've ended up using the latter, because my emacsclient methodology caused it to switch buffers if I was in the minibuffer when Aquamacs came polling.

If any emacs gurus can do better, please let us know! Source to that method is in the .applescript file.

I've got a few extra ideas up my sleeve and am hoping the SlifeLabs team will be open to external code contributors :)

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <code> <br> <h2> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.