Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active September 11, 2023 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmolveau/bd5f2e582b7e15ae99e58fe4bb42508c to your computer and use it in GitHub Desktop.
Save gmolveau/bd5f2e582b7e15ae99e58fe4bb42508c to your computer and use it in GitHub Desktop.
Create a new text file in the finder with Automator and Quick Action
  • open automator
  • create new quick action
  • workflow received no input in Finder.app
  • search run apple script and double-click on it
  • replace code with :
tell application "Finder"
    set txt to make new file at (the target of the front window) as alias with properties {name:"newfile.txt"}
    select txt
end tell
  • save as NewFile
  • go to finder, in Services you should see "NewFile"

image

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