I just saw something on flickr, in the Lifehacker Desktop Show-and-tell that reminded me of something else. I use Slickrun constantly, I truely hate icons, and I had forgotten this little tidbit I had seen on the Slickrun forums.
MagicWord: xmas
Filename: cmd
Startup Path: c:\Documents and Settings\MYUSERNAME\My Documents
Parameters: /c echo $i$>>xmaslist.txt
Replace the startup path with the location of the file to be updated
Replace xmaslist.txt with the name of the file to updated
To use the Magic Word, type xmas and then the text you want to be appended to the text file. e.g.
“xmas A Penguin Factory”
–Here’s how to append to a text file using SlickRun
I thought it was cool enough, especially when coupled with Merlin Mann’s text setup, that I would blog about it.
I use AutoHotKey, almost as much as I use Slickrun (not that you care, but I use bbLean, instead of Explorer.exe, with the hotkey, and vwm plugins disabled). Anyway, I do something similar with AutoHotKey.
First the code:
{
FileAppend, %A_Now% `n %clipboard%`n, %USERPROFILE%\My Documents\LSRNotes.txt
}
return
Now the details:
%A_Now% is a built-in variable that contains the current time stamp. ‘n inserts a carriage return and linefeed into the output. %clipboard% contains whatever is currently in the clipboard. %USERPROFILE% is a Windows system variable that points to my users profile path (i.e. C:\Documents and Settings\Strong Bad). The rest (My Documents\LSRNotes.txt) is the subdirectory, and file name where I want my notes collected.
How it works:
- Select some text, either in a document or a web page.
- Press Ctrl+C (or click EDIT>COPY)
- Press the Windows Key+A (the Windows key has a little MS Windows logo)
The result:
It’s been a while since I talked about how I’m using text files, and my post a while ago on Quicksilver appending reminded me of a few little changes I’ve made over the past year or so that my fellow text geeks might find interesting.
The first line is the *ISO datetime stamp, which consists of two parts: the first eight characters is the date, and the last six characters is the time in *ISO or military format.




