New File Here


Create ‘untitled.txt’ in selected directory, or parallel to selected file.


It’s a file action!

> -newfile /path/to/somewhere
Technically, you can also use this from the regular Alfred prompt, but who wants to type out full directory paths? Double hypen just prevents the command from showing up too much.


Will not overwrite if the file already exists. Success/failure messages displayed via growl.

You can download Alfred App for free here:

To kick things up a notch with extensions and more, get the Powerpack for Alfred.

One thought on “New File Here”

  1. Hey, useful extension, but it seems to fail when the path has a space in it. It’s okay if the selected item has a space, but if there is a space somewhere further up the folder heirarchy, it gives this error:

    >Warning: fopen(/Users/mac/Documents/folder\ 2/untitled.txt): failed to open stream: No such file or directory in /Users/mac/Library/Application Support/Alfred/extensions/scripts/New-File-Here/new.php on line 12

    > Warning: fwrite() expects parameter 1 to be resource, boolean given in /Users/mac/Library/Application Support/Alfred/extensions/scripts/

    Obviously a quoting issue somewhere, but I don’t know my way around php, so I can’t figure it out.


Leave a Reply

Your email address will not be published. Required fields are marked *