Alfred, Remember the Milk
After toying with Google Tasks as a way of managing my life (or at least the parts of my life not already managed by Trac), today I’m experimenting with Remember the Milk, with hopes of finding, in its single-minded focus on task management, a more fulfilling solution.
After getting the iPad and iPod apps set up, getting the email-to-tasks chain flowing, the next task is getting (the excellent) Alfred app up and running for easy task entry from anywhere.
Here’s how I did it.
Step One: Install rumember
This is a handy command line Remember the Milk utility. Install as follows, from the command line:
git clone https://github.com/tpope/rumember.git cd rumember sudo gem build rumember.gemspec sudo gem install rumember-1.0.0.gem
Run ru from the command line the first time and a browser will open Remember the Milk requesting permission to access the application; one you grant this once you don’t need to do it again. Once you’ve done this, you can test the utility from the command line like:
ru Setup Alfred for Remember the Milk
Step Two: Setup for Alfred
Open the Alfred Preferences window and click on the Terminal section:

Click on the + at the bottom of the list to add a new command, and enter the following:
- Title: Remember the Milk
- Description: Add a Remember the Milk Task
- Keyword: r (this can be anything you like – rtm or task… anything)
- Command: ru {query}
- Optionally, grab this official icon and drag it into the icon field.
And click Save:

Make sure you check the Silent checkbox beside your new command to prevent a Terminal window from opening when you access the command:

Step Three: Use It!

…results in:

I’ve only been a Remember the Milk user for a few hours now, but I’ve already upgraded to the $25/year “pro” level – partly just because I admired the gentle on-ramp provided for this, where everything works fine and dandy at the “free” level, but just works better once you pay up. I’ll report back in a few weeks on how I make out with it…


Comments
1. With terminal closed, I can’t seem to get the silent option to work. the tasks only add to RTM when I have terminal launched
I don’t seem to have this issue: with Terminal.app closed I can successfully add a task via this method without Terminal opening (or needing to be open).
2. Do you know how to add tasks to smartlists using this method? The due date works like a charm, but when I add, say, “#Work” it’s not filing the task like RTM normally would.
If you check the “Escape spaces with backslashes” checkbox this appears to work properly:
To “Run ru from the command line,” once you’ve installed Rumember, just open the Terminal application and type ru. Your browser should open and you’ll either be asked to login to Remember the Milk or, if you’re already logged in, you’ll have automatically authorized Rumember. That’s it!
pushdabove theru {query}actually let me run it through the RVM version :)-s "/Users/YOUR_USERNAME_HERE/.rvm/scripts/rvm" ;source "/Users/YOUR_USERNAME_HERE/.rvm/scripts/rvm";ru {query}made it work for me. This is only applicable if you installed ru with RVM.This helpful tip got a bit garbled by the commenting system's auto formatting, sadly. To get Alfred & RtM to work nicely with rvm, the command should be:
source "/Users/YOUR_USERNAME_HERE/.rvm/scripts/rvm"; ru {query}
That fixed my issues as well. Thanks man!
If you're using rbenv, you'll need to get the full path by using "which rbenv ru" - just putting "which ru" will lead you to the shim and you'll still be stuck. Thanks for getting me on the right track though!
If you're using rbenv, you'll need to get the full path by using "which rbenv ru" - just putting "which ru" will lead you to the shim and you'll still be stuck. Thanks for getting me on the right track though!
After running:
sudo gem install rumember-1.0.0.gemI get this error message:
ERROR: Error installing rumember-1.0.0.gem:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can’t find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
I am running a fresh install of Lion, which I believe ships with Ruby 1.8.7.
If you are receiving this error and already have XCode installed try this: Open XCode->Preferences->Downloads->Components->Command Line Tools->Install
This seemed to fix it for me.
After copying the command lines I get this error:
ERROR: Error installing rumember-1.0.0.gem:
Can anyone help?
Me too.
Me three. Any help, anyone?
Me four. Uggggh. I've tried the rvm route, but I'm not too familiar with Ruby installation/setup. I'll just wait for a solution to be posted here… :(
You’re just sending regular Remember the Milk strings via the API, so anything you can enter in the app you can enter via this interface. So, to your example, “r get some milk tomorrow” should work just fine.
I am on Lion 10.7.3 …I have XCode installed.
But I still cannot get it to install on my laptop.
I get this message:
could not find gem rumember-1.0.0.gem locally or in a repository
I have successfully installed this (weeks ago) on my desktop computer. So I don’t understand why it isn’t working now.
I am not that familiar with the terminal and commands.
Any help is greatly appreciated.
Thanks!
Yes, this is the problem I'm now getting also, with Xcode installed. Argh, it's so cool and I really want to use it!
I'm having a strange issue where all of my tasks added through this method are one day earlier than I specify.
For example, if I send "r Pick up Milk", it sets the due date as Today.
If I send "r Pick up Bread tomorrow" it sets the due date as TODAY.
If I type "r Pick up Butter today", it sets the due date as YESTERDAY (overdue).
If I send "r Pick up Eggs Friday", it sets the due date as Thursday.
Anybody have any suggestions? I don't have this problem from the website or the mobile app, it's specific to rumember + alfred.
(And other than this date thing, this is a great method! Thanks!)
I'm currently running Mountain Lion and having some problems with dates. In particular, ^tomorrow results in no task being added. Is this standard behavior?
Anyone still having trouble making rumember work, I wrote a little tutorial for another not-so-elegant solution http://www.kimkorte.de/2012/10/05/how-to-add-tasks-to-remember-the-milk-using-alfred/
Still, if anyone figures out why some people can't install rumember please tell me, I prefer the solution on this site.
I was able to use this with Alfred a while back but I'm having a hard time building it with mountain lion. Has something changed in ML to keep this from working?
Post new comment