Create file in finder

Hi everyone,

So if you right click (or two finger tap/click on the trackpad) in a finder window, a menu pops up with 'New Folder', 'Get Info', etc. I would like this menu to also contain an option to create a generic text file. Is this possible in BTT? If so, could you please explain how this can be achieved?

I apologize if this has been asked before.

Thank you!

Best,
Michael

I spent another 30 minutes trying to figure it out today but no luck. Anyone have any ideas? Thanks!

Bump!

Thanks!

-Michael Chan

I don't know if you are still looking for this, but here is my code:

tell application "Finder"
	set theWindow to window 1
	set thePath to ((POSIX path of (target of theWindow as alias)) as text)
end tell

do shell script "date > " & thePath & "/Text.txt"

Thank you so much for the response Charles! Yes I was still waiting for an answer.

I don't know much about using BetterTouchTool so I was only able to create a keyboard shortcut to run this script. Do you know how to create an option in the right click menu that runs this script in Finder?

Best,
Michael