jipnet Posted March 23, 2018 Share Posted March 23, 2018 I'm trying to find folders, not files, by name in the finder then open or reveal. I'm new to workflows. I created one (attached), but it pauses and takes a while to do its stuff. Is there a better way? thanks. Link to comment
CJK Posted March 23, 2018 Share Posted March 23, 2018 Unfortunately, you didn't post a screenshot of the workflow in action, perhaps just after you had typed f in the search bar, and began to enter the first few letters of a folder name. Did you set a search scope for this filter ? I've uploaded a workflow here that uses the File Filter to allow you to select a folder, the location of which will be the working directory of a new Terminal window that opens up. To use, open the Alfred search bar, type cd <space> then the start of a folder name, e.g. cd vol which, on my system, brings up /Volumes, Kill Bill Volume 1. soundtrack folder, etc. If this workflow doesn't work for you, then this might be a symptom of a bigger problem. Link to comment
jipnet Posted March 23, 2018 Author Share Posted March 23, 2018 here is a link to my workflow https://www.sugarsync.com/pf/D806968_08952988_6051443 Link to comment
jipnet Posted March 25, 2018 Author Share Posted March 25, 2018 Thanks. I don't want to use scripts or Terminal, and the folders I am look for are in my user directory (pdfs and documents mostly). Is there no built-in way to search for folders rather than files? (ie to specify to exclude files and just look for folders)? Link to comment
CJK Posted March 25, 2018 Share Posted March 25, 2018 *facepalm* You'll want to take another look at the workflow I uploaded for you. Yes, it so happens that I (randomly) chose the workflow's action to open up a folder in Terminal, but No, the workflow itself does not employ any scripts or the use of *Terminal* in order to search through folders within Alfred. You're asking: 3 hours ago, jipnet said: Is there no built-in way to search for folders rather than files? (ie to specify to exclude files and just look for folders)? and that's exactly what a File Filter does, and what my workflow demonstrates. Link to comment
jipnet Posted March 25, 2018 Author Share Posted March 25, 2018 (edited) A *hint* on how to modify the workflow would help also why my sample doesn’t work did you look at my sample? Edited March 25, 2018 by jipnet Link to comment
Tsunami Posted March 26, 2018 Share Posted March 26, 2018 Your sample works fine for me, did you maybe add a lot of folders to your search scopes? Link to comment
Vero Posted March 26, 2018 Share Posted March 26, 2018 @jipnet Take a look at the guide on creating your own File Filter workflow, which walks you through the various steps (setting file types, setting a search scope, etc): https://www.alfredapp.com/help/workflows/inputs/file-filter/ You can then replace the Terminal object @CJK opted for with something like the "Open File" or "Reveal in Finder" or "Browse in Alfred" object, depending on what you're trying to achieve Cheers, Vero Kurt Sanders 1 Link to comment
jipnet Posted March 26, 2018 Author Share Posted March 26, 2018 Thanks to @Tsunami and @Vero for these responses. Link to comment
jipnet Posted March 26, 2018 Author Share Posted March 26, 2018 BTW, I think it would be helpful if Alfred documentation noted the difference between "file" and "folder" when speaking of the find instruction. That is what threw me off initially. Perhaps more logically, for purposes of description: find object, where object can be variously specified as file, folder, image, sound file, movie file, etc. Link to comment
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