To use this, create a new Workflow in Alfred.app, create a Keyword Input and connect it to a Run NSAppleScript Action.
Paste the AppleScript code.
I’ve also made the complete Workflow package available here: https://github.com/frankrausch/alfred-new-file