Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Create a New File in the Finder

View Create a New File
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/env osascript
-- name: Create a New File
-- description:
-- Create a new Untitled file in the current Finder window
-- Intended to be used as an appify app in the Finder toolbar
-- author: Thomas Aylott <>
-- license: MIT
tell the application "Finder"
set the_folder to the target of the first window
set the_path to the quoted form of POSIX path of (the_folder as alias)
do shell script "cd " & the_path & ";touch Untitled"
select file "Untitled" of the_folder
delay 0.25
tell the application "System Events" to keystroke (key code 36)
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.