Creating new text file action in Mac OS
I really miss option of creating new text file in Mac OS in simple way like Windows offers on right click.
To bring it back, we will use Automator.
- Create Quick Action
- Change “any window” to “Finder”
- Change receives to “no input”
- Add “Run AppleScript” from library
- Paste the following script:
tell application "Finder"
set txt to make new file at (the target of the front window) as alias with properties {name:"empty.txt"}
select txt
end tell
- Save it as “New Text File” and close automator
- “New Text File” will be avaiable in Services menu when Finder is open
Sources:
- Create a New Text File Anywhere With a Keyboard Shortcut On a Mac
- How to Quickly Create a New, Blank Text File on Windows, Mac, and Linux
That's it for this post, thanks for reading!