Last active
August 29, 2015 13:56
-
-
Save brandonpittman/9244726 to your computer and use it in GitHub Desktop.
Creates a new file at location of front Finder window.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Finder" | |
set _question to display dialog "Please enter file name..." default answer "" with title "New File" | |
set _file to text returned of _question | |
set _target to target of front window as alias | |
set _path to POSIX path of _target | |
set full_name to quoted form of _path & _file | |
do shell script "touch " & full_name | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment