Quickest way to save new text file to a folder

finder

I have a folder open in finder – what is the quickest way to save a new text file to it?

On Windows I would use "New Text" and then edit the file. On the Mac I open a new file in Sublime or Textedit but then I have to select the folder again when I want to save …?

Best Answer

You can run the following AppleScript through a service with keyboard shortcut or context menu item.

tell application "Finder"
  set selection to make new file at (get insertion location)
end tell

Alternatively, drag the current directory to Terminal and type touch filename. You can alias the command to something like n for easier activation, and also add closing the Terminal window to the aliased command.