log activity with launchy

1. make a directory named c:scratch

2. create a python script log.py and save the same directory
import time
import sys

now = time.localtime(time.time())
tim=time.strftime(“%Y/%m/%d %H:%M:%S”, now)

fp = open(“c:scratchmyLog.txt”, “a”)
message = ” “.join(sys.argv[1:])
print >>fp, tim+” “+message


3. register that directory and *.py in launchy category and rescan

4. Restart launchy

5. invoke launchy and type “log” and type tab

6. jot down log message and enter


Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.