This morning I wanted to create a text file in Finder, but of course, you can’t really do that. Create a folder yes, but not a file. So after a few searches, it seems the most common answer is to write a rather involved AppleScript. That seems a rather imperfect solution to me.
So here is what I think is a much simpler solution.
- Create a text file on the desktop to use as a template named
newfile.txt. This can be done with a text editor of your choice or from the command line. Here are the steps for the command line.
- Open Terminal
You now have a empty text file you can use to create new files.
- To create a text file in any finder folder do the following:
- Hold Alt and drag the newfile.txt template file from the Desktop to the Finder folder you want to add the file to.
- Drop the file. A copy is of the blank file is created in the folder. Mission accomplished.
Tip: One thing I find annoying about this method is if you need to change the extension of the file. OS X always issues a warning when you try to do this. but you can turn it off.
- Open Finder
- Select Finder –> Preferences
- Select the Advanced tab
- Uncheck Show warning before changing an extension.
That should get rid of the warning.
Well I hope this helps. It seems a much easier way to create text files with the OS X GUI and you don’t have to write a script.