tailoredfilter Posted July 19, 2018 Share Posted July 19, 2018 I have no knowledge of coding or anything like that, but I'm trying to create a list filter that will activate another list filter. I already know how to make a list filter, but have been unsuccessful trying to get a list filter to activate another. Basically what I'm trying to do is create a workflow that shows a menu of items and when I click one of those items, it'll then show another list of items. Link to comment
vitor Posted July 19, 2018 Share Posted July 19, 2018 Welcome @tailoredfilter, Make a List Filter and fill it out. On each item, be sure to fill the Arg box with something unique that identifies the item. Connect it to a Filter Utility with the default values (i.e. “Only continue if {query} is equal to”) and put whatever you had on the Arg box in the Filter. Connect that to the new List Filter. Repeat however many times is relevant (once for each item on the original List Filter). giovanni 1 Link to comment
tailoredfilter Posted July 19, 2018 Author Share Posted July 19, 2018 Hmm. That's what I tried doing and why I decided to ask on here. I've set it up like that. However, when trying to use the workflow, if I select something from the first list, it just shows the Arg instead of another list. Link to comment
vitor Posted July 19, 2018 Share Posted July 19, 2018 Please upload the Workflow somewhere so we can take a look and see what’s wrong. Link to comment
tailoredfilter Posted July 19, 2018 Author Share Posted July 19, 2018 I've uploaded it here. I haven't put all the lists in there that I want to create since I'm still trying to get my first sub-list to work. I appreciate you having a look. Link to comment
vitor Posted July 19, 2018 Share Posted July 19, 2018 The issue is the argument is being passed to the second List Filter, so it’s being used as the filtering word. To prevent that, add an Argument and Variables Utility between the Filter and the second List Filter and make the Argument box empty (so nothing is passed). Link to comment
tailoredfilter Posted July 19, 2018 Author Share Posted July 19, 2018 Awesome! That worked! Thank you so much! Link to comment
giovanni Posted May 8, 2020 Share Posted May 8, 2020 Hi @vitor, I am trying to do the same as the OP described, but both lists are thousands of items long. Is this a job for a script filter? To clarify, I have an initial List Filter, and I would like to grep a second large file for the Arg from the first Filter and serve the (parsed) output to the user in Alfred. Thanks! G Link to comment
deanishe Posted May 8, 2020 Share Posted May 8, 2020 (edited) 3 hours ago, giovanni said: thousands of items long. Is this a job for a script filter? A Script Filter can handle several tens of thousands of results no problem. IIRC, when Andrew implemented it, he was testing it with 50K+ entries. Edited May 8, 2020 by deanishe giovanni 1 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