Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MrChocolatine/9c9abd0c0862ce82fb5ea6e04a9e7863 to your computer and use it in GitHub Desktop.
Save MrChocolatine/9c9abd0c0862ce82fb5ea6e04a9e7863 to your computer and use it in GitHub Desktop.
macOS – Create a new blank text file on the fly in the Finder

macOS - Create a new blank text file on the fly in the Finder

Inspired from: https://www.maketecheasier.com/create-blank-text-file-mac/

  • Launch Automator.app

  • In the menubar click File > New > Select Application then click Choose

  • In the left pane search for the item Run AppleScript It should be located in Library > Utilities > Run AppleScript

  • Click and drag the item Run AppleScript into the right pane

  • In the newly created box, delete all its content and then copy-paste this:

    tell application "Finder" to make new file at (the target of the front window) as alias
  • In the menubar click File > Save...

    • For the field Save As, name your app as you want, for example New Blank Text File

    • For the field Where, make sure to select the folder Applications

    • For the field File Format, make sure to select Application

  • In your Finder open the folder Applications

  • While pressing they key ⌘ command drag and drop the application you just created onto the Finder's toolbar

  • Now every time you browse your folders using the Finder, you can click on the icon of your app in the toolbar to create a new blank text file on the fly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment