Jan 24, 2012
7 notes

Create a New Text File in Alfred

I’ve created my own extension in Alfred today that basically creates a new text file on your desktop and opens it in TextEdit (because everyone has that).

Download the extension here.

Customizing

The script that does all the magic:

cd ~/Desktop
touch {query}.txt
open {query}.txt

All it does is navigate to your desktop, creates and then opens a .txt file with a name you give it. The only thing you might be tempted to change is the path and which app you want to open. For example, I use Notational Velocity’s fork nvALT for storing my notes and stuff. I just direct the script to that directory and create a new file there. I also happen to prefer TextMate over TextEdit because of Markdown features, so I’ll change open to mate. I’ve kept it as above since I know not everyone uses Notational Velocity or TextMate (but you should).

Enjoy!

  1. drdkl posted this
About
Random ramblings and such curated by me.