skip main content

Posts Tagged ‘applescript’

TrainMode now supports AppleScripts and therefore Alfred

posted by Duncan at 10:04 am on January 5th, 2012

I’ve just pushed an update to my Mac Utility TrainMode. It allows you to be able to control the application via AppleScript. There are two reason for this feature. One is that I recently update the application, and when re-publishing through the App Store, it got refused due to functionality that had deemed fine the first time round! What it essentially meant was that you could no longer just click the icon in the status bar to activate TrainMode anymore.

Now I use the productivity application Alfred a lot. In fact I struggle to think how I would cope without it now. This application lets you do almost anything on your machine via a series of short keystrokes. It’s free, but the real cool stuff comes when you buy the PowerPack. With the PowerPack you can write your own scripts that can be activated by simple keystrokes.

So I’ve written a simple Alfred extension that can now talk to TrainMode via AppleScript. It means you can now activate and de-activate TrainMode with a simple key combination:

tmo a - activate
tmo d - de-activate

TrainMode Alfred Extension

Any application that supports running AppleScripts could also work. Oh and in Alfred you can change the command completely. In fact I wanted it to be tm, but my mac by default seems to auto convert that into ™.


back to the top