Create shortcut for new .txt (or any) file in OSX

PART I. CREATE AN APPLE SCRIPT VIA AUTOMATOR

Step 1. Open Automator application.

Step 2. Create new Service.

Step 3. Set Service receives selected to no input.

Step 4. Drag the Run AppleScript action in the workflow area.

Step 5. Delete the default content and paste the code below:

Step 6: Save AppleScript as CreateNewTextFile (or any other desired name).

STEP 7: Close Automator.

PART II. SET UP KEYBOARD SHORTCUT FOR THE NEW SERVICE

Step 1: Search Keyboard in Spotlight.

Step 2: Open Shortcuts tab.

Step 3: Select Services from left panel.

Step 4: Look for General item.

Step 5: Assign keyboard shortcut by selecting CreateNewTextFile service and click Add Shortcut button.

Step 6: Assign desired keyboard shortcut.

Step 7: Close System Preferences.

Step 8: Test by pressing your keyboard shortcut.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store