Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Alfred Workflow AppleScript to create an empty file in the current Finder window
on alfred_script(q)
set title to "Untitled.txt"
if q is not equal to "" then set title to q
tell application "Finder" to make new file at (the target of the front window) as alias with properties {name: title}
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment