it's an alfred extension . you can create any type of file into your current directory . launch alfred and type
#create index.php
download link : https://dl.dropbox.com/u/37351231/Create.alfredextension
thats it . enjoy :)
it's an alfred extension . you can create any type of file into your current directory . launch alfred and type
#create index.php
download link : https://dl.dropbox.com/u/37351231/Create.alfredextension
thats it . enjoy :)
| property DefaultPath : "~/Desktop" | |
| property fileExt : "" | |
| on alfred_script(q) | |
| tell application "Finder" | |
| try | |
| set currentPath to (POSIX path of (target of front window as alias)) | |
| on error | |
| set currentPath to DefaultPath | |
| end try | |
| set theFile to quoted form of (currentPath & q & fileExt) | |
| do shell script "touch " & theFile | |
| end tell | |
| end alfred_script |