Keyboard Maestro script for tweeting latest post

My blogging workflow generally involves:

  1. Posting a blog article with MarsEdit
  2. Reviewing the article in Safari
  3. Tweeting the article in Twitter

Step 3 required copying and pasting both the URL and the article title, separated by an em-dash, into the twitter client. I simplified this with the following Keyboard Maestro macro, which, in addition to forming the correct tweet text, also strips out the blog name from the title—for each of my two blogs Dafacto and Rantbox.

Fast access to the previous month's time report in Harvest

This article shows you how to use Keyboard Maestro to automatically access your Harvest timesheet report for the previous month. Enjoy!

At the beginning of each month, I invoice Makalu’s clients for the work we did in the previous month. We track our time at Harvest, and in order to see how many hours need to be invoiced I go to their website and click on “Report”→”Month”→”Left Arrow”. All in all, four steps.

Being lazy, I’d like to reduce this to one step.

With the help of our system administrator and unix wizard, Niall O Broin, I created a Keyboard Maestro macro that executes the following shell script, resulting in Safari opening the right URL to access the full report for the previous month. (Niall complained that OS X’s date function was trickier to deal with than the GNU function. Whatever.)

open -a /Applications/Safari.app https://makalu.harvestapp.com/reports?from=$(date -v -1m -v -$(date +%d)d -v +1d +%Y%m%d)&till=$(date -v -$(date +%d)d +%Y%m%d)&kind=month

If you use this script, you’ll want to replace the “makalu” in the URL with your own company’s unique identifier at Harvest.

Drive Slowly

The way I’ve always driven my scooter around town could best be described as “hurried”. I drive fast. I usually accelerate through yellow lights. I zip between cars.

Why? Impatience, I suppose.

Recently, my wife signed us up for a swimming class in the wee hours of the morning. Since she never accepts any of my lame excuses to skip class, I’ve found myself driving from home to the pool as slowly as possible; any time I can kill driving there is time I don’t have to swim laps!

I drive the speed limit. I slow down at green lights in the hope they’ll turn yellow, so I can stop. And I never zip between cars.

But you know what’s interesting? It doesn’t help! All that slowness, and the trip is maybe prolonged by maybe a minute or two.

That got me thinking. When you consider the risks involved in driving fast and the small amount of time actually saved, it’s pretty obvious that it’s not a smart tradeoff!

I guess this is common sense, but it’s probably worth at least reminding ourselves from time to time — Drive Slowly!