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: http://www.alfredapp.com/.
To kick things up a notch with extensions and more, get the Powerpack for Alfred.
Pages: Page 1, Page 2
One thought on “New File Here”
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.