Alfred is a really slick new launcher for OS X. It’s a lot simpler than QuickSilver.
One feature I can’t live without in my launcher is the ability to add tasks to my todo list and diary, both kept in the excellent Remember the Milk.
Alfred can’t run commandline programs (yet) so I wrote this simple webpage to send in tasks via the Remember the Milk email interface.
<?php
define('RTM_ADDR', 'YOUR RMILK EMAIL POST ADDRESS HERE');
define('CC_ADDR', 'IF YOU WANT TO SEND A COPY ANYWHERE');
function main() {
$list = isset($_GET['list']) ? $_GET['list'] : 'To Do';
$sending = $_GET['s'] . " #" . $list;
if (strpos($sending, "^") === FALSE) {
echo '<p>No Due Date - set to today</p>';
$sending .= " ^today";
}
echo "<p>Sending " . htmlentities($sending) . "</p>";
$success = mail(RTM_ADDR, $sending, '', "Cc: " . CC_ADDR . "\r\n");
echo $success ? '<p style="color: green">Success</p>' : '<p style="font-size: large; color: red">Failure</p>';
}
main();
It’s quite annoying having a browser window come open and success/failure refers only to the sending of the email not the addition to Remember the Milk, but it’s a lot better than not having the capability.
PS I kind of hate the actual Remember the Milk API. It’s wonderful that they support undo and serious security and so on but it’s a real pain when all you want to do is post a task to a list and you have to deal with requesting timelines and frobs and tokens, etc.
