aboutsummaryrefslogtreecommitdiff
path: root/content/post/2012-1-9-alfred-extension-for-creating-wunderlist-task.markdown
blob: e9af9b3a8c12e6237926bacfc3e6a0159f08d993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: "Alfred Extension for creating Wunderlist tasks"
date: 2012-01-09T23:36:00Z
comments: false
url: /alfred-extension-for-creating-wunderlist-task
tags:
---



While looking for a way to add wunderlist tasks via alfred, I came upon [wunderlist-for-alfred](http://jdfwarrior.tumblr.com/post/13163220116/wunderlist-for-alfred)

Looked cool, but I wanted to write my own that didn't depend on php.

I used ```lsof``` to figure out the location of the db, then used ```file``` to see what kind of db it was. Luckily, it was sqlite3, so I was able to poke around and figure out the sql to create a task.

Here's the alfred extenstion that ties it all together:

```sh
user=`whoami`
wunderdb="/Users/$user/Library/Wunderlist/wunderlist.db"
sqlite3 $wunderdb "insert into tasks (name, list_id) values ('{query}', 1)"
```

Download it [here](http://dl.dropbox.com/u/42561/wunderlist-capotej.alfredextension)