Blog

“Create New File” for MacOS

A nice feature in Windows is the ability to quickly create a blank file in any folder by right-clicking and then selecting from the menu that appears.

MacOS doesn’t seem to offer this functionality, so I created a similar feature, as follows:

Created a new file in my home folder.

nano CreateFile.command

Entered this in the above file:

touch RenameMe

Modified the permissions so I can launch the file from Finder:

chmod a+x CreateNewFile.command

Done! It’s not the most elegant solution, but at least now I can go to my home folder, double-click the CreateFile.command file and I get a new, clean file I can edit and move where I want it.