roza Posted April 8, 2013 Posted April 8, 2013 Hi, is there any simple and straightforward way to create a new folder with Alfred from within Alfred's file manager?
Vero Posted April 8, 2013 Posted April 8, 2013 Hi, is there any simple and straightforward way to create a new folder with Alfred from within Alfred's file manager? Looks like there is a user-created workflow here to do this: http://www.alfredforum.com/topic/1531-create-new-folder-version-10/ I'll move your question to the Workflows help & questions as you're more likely to find an answer there
jdfwarrior Posted April 8, 2013 Posted April 8, 2013 Hi, is there any simple and straightforward way to create a new folder with Alfred from within Alfred's file manager? Let me know if the workflow suggested by Vero doesn't fulfill your needs. If not, I'll see if I can put something together to help you out.
raik Posted April 9, 2013 Posted April 9, 2013 Let me know if the workflow suggested by Vero doesn't fulfill your needs. If not, I'll see if I can put something together to help you out. Hi. It would be really great if there was something like Advanced New File is for Sublime Text. There is a Tutsplus video for it. Something like that. What do you think? And it all would work inside the Alfred filemanager - i dont know if its possible. Carlos-Sz 1
roza Posted April 19, 2013 Author Posted April 19, 2013 Let me know if the workflow suggested by Vero doesn't fulfill your needs. If not, I'll see if I can put something together to help you out. Hi David, the above workflow is not working for me at all (which could be because I don't quite get how to use it). Essentially, what I am looking for is this: I want to select several files in Alfred and be able to navigate to a particular folder (all working well) -- what I am missing is a way to easily create a new folder to put the files in. It seems counterintuitive to me that I can do all these things in Alfred but when it comes to creating a folder I have to return to the finder. Essentially, what I am looking for is a "make directory" command in Alfred file navigation which creates a new folder in the current folder. Thanks for looking into this!
Carlos-Sz Posted April 20, 2013 Posted April 20, 2013 Hi David, the above workflow is not working for me at all (which could be because I don't quite get how to use it). Essentially, what I am looking for is this: I want to select several files in Alfred and be able to navigate to a particular folder (all working well) -- what I am missing is a way to easily create a new folder to put the files in. It seems counterintuitive to me that I can do all these things in Alfred but when it comes to creating a folder I have to return to the finder. Essentially, what I am looking for is a "make directory" command in Alfred file navigation which creates a new folder in the current folder. Thanks for looking into this! Nice idea. I’ll try to make a workflow for you.
jdfwarrior Posted April 20, 2013 Posted April 20, 2013 Hi David, the above workflow is not working for me at all (which could be because I don't quite get how to use it). Essentially, what I am looking for is this: I want to select several files in Alfred and be able to navigate to a particular folder (all working well) -- what I am missing is a way to easily create a new folder to put the files in. It seems counterintuitive to me that I can do all these things in Alfred but when it comes to creating a folder I have to return to the finder. Essentially, what I am looking for is a "make directory" command in Alfred file navigation which creates a new folder in the current folder. Thanks for looking into this! Quick stab at it.. try this: Download Try that out, let me know what you think and we can try to improve it from there (if needed)
Carlos-Sz Posted April 20, 2013 Posted April 20, 2013 Hi David, the above workflow is not working for me at all (which could be because I don't quite get how to use it). Essentially, what I am looking for is this: I want to select several files in Alfred and be able to navigate to a particular folder (all working well) -- what I am missing is a way to easily create a new folder to put the files in. It seems counterintuitive to me that I can do all these things in Alfred but when it comes to creating a folder I have to return to the finder. Essentially, what I am looking for is a "make directory" command in Alfred file navigation which creates a new folder in the current folder. Thanks for looking into this! David was faster! Anyway, here is my approach considering your suggestion: Right now it works as an Alfred File Action only Select the files in Alfred browser, select “To New Folder” action then one of the 3 options below (move, copy or only create a new folder): Downlaod now fcalazans 1
roza Posted April 22, 2013 Author Posted April 22, 2013 (edited) Carlos-Sz, This is what I was looking for. And It makes sense to have it as a file action. It is kind of weird that it makes you return to the regular alfred window once you choose the file action but I guess there is no other way of doing this. Thanks! Edited April 22, 2013 by roza
roza Posted April 22, 2013 Author Posted April 22, 2013 David, thank you, your workflow works in a similar fashion, Carlos has some more option. Thanks both of you, this is fantastic.
jdfwarrior Posted April 23, 2013 Posted April 23, 2013 David, thank you, your workflow works in a similar fashion, Carlos has some more option. Thanks both of you, this is fantastic. Glad I could help
Carlos-Sz Posted April 23, 2013 Posted April 23, 2013 Carlos-Sz, This is what I was looking for. And It makes sense to have it as a file action. It is kind of weird that it makes you return to the regular alfred window once you choose the file action but I guess there is no other way of doing this. Thanks! Great! When I started using workflows that made me return to Alfred window I thought the same but after awhile you get use to it and then it becomes natural (like in To Do workflow).
glortho Posted November 1, 2013 Posted November 1, 2013 This should really be built into Alfred. When you're browsing the filesystem, you should be able to navigate to the directory where you want to create the file/folder and start typing the name of the new file/folder as if you were trying to navigate to it. Instead of that big useless blank space below, it could show "Create new file at <path + what you've typed so far>" as an option. To create a folder, just put a slash at the end and it'll change to say "Create new folder at <path + what you've typed>". Or you could have both options appear below at the same time to avoid having to type the slash. It could also be smart to new nested folders, so you could /just/keeping/typing/your/path and it would create all the necessary new folders. MrShap and fcalazans 2
Roller Posted November 2, 2013 Posted November 2, 2013 (edited) Quick stab at it.. try this: Download Try that out, let me know what you think and we can try to improve it from there (if needed) David, I just wanted to say thanks. This workflow is exactly what I was looking for. I'm basically new to Alfred. Switching over from Launchbar and haven't figured out the techniques for making workflows. Edited November 3, 2013 by Roller
Guest atomkraft Posted November 20, 2013 Posted November 20, 2013 Anyone up for a workflow which will work outside of Alfred File Action? I'd want the possibility of creating a new folder in Finder in the current path when entering a keyword. To illustrate; active window is Finder bring up alfred type keyword (nfolder <foldername>) the folder would be created at the same path as the previously active Finder window Is this possible? I've tried 3 different workflows but they dont seem to act the way i seek. Thanks in advance
jdfwarrior Posted November 20, 2013 Posted November 20, 2013 Anyone up for a workflow which will work outside of Alfred File Action? I'd want the possibility of creating a new folder in Finder in the current path when entering a keyword. To illustrate; active window is Finder bring up alfred type keyword (nfolder <foldername>) the folder would be created at the same path as the previously active Finder window Is this possible? I've tried 3 different workflows but they dont seem to act the way i seek. Thanks in advance Try this: Download
Guest atomkraft Posted November 21, 2013 Posted November 21, 2013 (edited) Try this: Download Great mate! Thanks a lot you just made my next days alot easier =) You rock Edit: Would it be possible for you to create a similar flow for a new file aswell? I'm not really comfortable editing this stuff myself.. fear of breakage! Edited November 21, 2013 by atomkraft
jdfwarrior Posted November 21, 2013 Posted November 21, 2013 Great mate! Thanks a lot you just made my next days alot easier =) You rock Edit: Would it be possible for you to create a similar flow for a new file aswell? I'm not really comfortable editing this stuff myself.. fear of breakage! Yeah this one could be modified pretty easily to make new files instead. Would just be a new keyword and instead of mkdir I'd use touch. I'll get it back to you shortly. Just getting ready for the day
Guest atomkraft Posted November 21, 2013 Posted November 21, 2013 (edited) Yeah this one could be modified pretty easily to make new files instead. Would just be a new keyword and instead of mkdir I'd use touch. I'll get it back to you shortly. Just getting ready for the day Would the Run Script part just look like this? fn="{query}" path=$(osascript -e 'tell app "Finder" to return POSIX path of ((folder of front Finder window) as alias)') touch "$path$fn" Thanks Edit: it works just fine now Wow Edited November 21, 2013 by atomkraft
jdfwarrior Posted November 22, 2013 Posted November 22, 2013 Would the Run Script part just look like this? Thanks Edit: it works just fine now Wow Ah great, yeah I got busy and completely forgot to get back on this. Glad you worked it out though.
katie Posted December 17, 2013 Posted December 17, 2013 Try this: Download I'm using this workflow to create new folders with a keyword but it doesn't seem to work on the desktop. Is there an easy way to modify this slightly so that if there's no open Finder window, a new folder will be created on the desktop?
jdfwarrior Posted December 18, 2013 Posted December 18, 2013 I'm using this workflow to create new folders with a keyword but it doesn't seem to work on the desktop. Is there an easy way to modify this slightly so that if there's no open Finder window, a new folder will be created on the desktop? Theoretically yes, you could but this workflow would have to be adjusted a good bit since its not just using AppleScript to grab the current path there. It's using the current selection or a result action to grab the current path. If there is no selection, it just doesn't do anything. One way you could get around this is just to select a file on the desktop and then use the hotkey.
katie Posted December 18, 2013 Posted December 18, 2013 Theoretically yes, you could but this workflow would have to be adjusted a good bit since its not just using AppleScript to grab the current path there. It's using the current selection or a result action to grab the current path. If there is no selection, it just doesn't do anything. One way you could get around this is just to select a file on the desktop and then use the hotkey. Okay, that makes sense. Thanks for explaining it to me!
Martino1983 Posted August 22, 2016 Posted August 22, 2016 Hi, the workflow doesn't work for me (Alfred 3.1). The error message is "[2016-08-22 17:34:15][ERROR: action.script] 0:135: execution error: Alfred 3 ha trovato un errore: "j new folder " non è in grado di capire il messaggio “«event alf2Sear»”. (-1708)". Can you help me?Thanks in advance. Martino
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now