7 ms·
Quicksilver + python + dropbox = awesomeness
I'm posting this up because I found it very useful, and you probably will too.
I needed away to quickly record my thoughts, whether its a startup idea, some task I have to complete, a quote I read somewhere, anything. I wanted the process to be super fast and very easy to do. Now of course I could've just made a todo.txt file and just open it up, but that's stupid.
I wrote a script that takes a string as its parameter, it lowers the case, caps the first word, adds a period, and puts a plus (+) at the beginning, and appends it to a file. Both the script and the file live in my dropbox folder, so its accessible from all my computers. Then I setup quicksilver on my mac so that whenever I type ctrl+space+(t)(o)+tab+(string_to_save)+enter, it executes the script with the string and saves it in the todo file in my dropbox folder.
So now whenever I have some really cool idea I don't want to forget, I just immediately save it and I'm good to go. I hope you guys find this as useful as I did.
<code>
#!/usr/local/bin/python
import os,sys
if len(sys.argv[1:]) == 0:
sys.exit()
todo = str(" ".join(sys.argv[1:])).strip().lower().capitalize()
un = os.popen('whoami', 'r')
path = "/Users/%s/Dropbox" % un.readline().strip()
with open('%s/todo.txt' % path, 'a') as t:
print >>t, "+ %s." % todo
</code>