mschultz Posted September 25, 2015 Posted September 25, 2015 (edited) Newbie question, and maybe I'm missing something, but does Alfred not filter the results of a script filter based on arguments? I have a fully functioning filter, but it seems odd that Alfred doesn't filter the results based on the value of the argument. For example, if I have a script filter with the keyword "Press", requiring an argument, and the items "one","two","three", I'd expect that typing "Press o" would limit the results to "Press one", where typing: "Press t" would limit the results to "Press two" and "Press three" I've tried both populating and omitting the uid field, to no effect, though I do understand that this field is primarily for "learning". Am I doing something wrong, or is this expected behavior? Edited September 26, 2015 by mschultz
jdfwarrior Posted September 26, 2015 Posted September 26, 2015 Newbie question, and maybe I'm missing something, but does Alfred not filter the results of a script filter based on arguments? I have a fully functioning filter, but it seems odd that Alfred doesn't filter the results based on the value of the argument. For example, if I have a script filter with the keyword "Press", requiring an argument, and the items "one","two","three", I'd expect that typing "Press o" would limit the results to "Press one", where typing: "Press t" would limit the results to "Press two" and "Press three" I've tried both populating and omitting the uid field, to no effect, though I do understand that this field is primarily for "learning". Am I doing something wrong, or is this expected behavior? It is the expected behavior of Alfred. Script Filter results basically aren't processed by Alfred. It's up to you, the developer to do that selection and/or filter the results based on the input by the user.
deanishe Posted September 29, 2015 Posted September 29, 2015 FWIW, if you're writing Script Filters, many workflow libraries, like Alphred (PHP) or Alfred-Workflow (Python), provide fairly clever functions for filtering queries, as well as a whole host of other features that are super-useful for writing Script Filters. JacobMiller 1
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