Macos – Easiest way to create a new text file in a Finder window on OSX


OK, so if I'm browsing directories in OS X Finder, what's the easiest way to create a new text file?

Right now I have to either open TextEdit, click around until I get to the same directory I'm in, or I have to open a terminal window, cd to the directory, and touch blahblah.txt. I'm spoiled by the right-click menu in Windows.

Best Answer

Personally I use the Open in textmate button that I have added to the toolbar. Steps to download and install the extension are in the link.

Or you can use this apple script

tell application "Finder" to make new file at (the target of the front window) as alias

Open script editor, save as an applescript application to a known location I use /Applications/Scripts and then drag it to the toolbar.

This will create a text file untitled in the current folder.