Jump to content

Python Arguments for Script Filter


Recommended Posts

I have a script filter that outputs a value. When passing this value into a downstream script filter, the argument is only available (via sys.argv) if the "Alfred filters results" box is unchecked. When checked sys.argv[1] throws an index out of bounds error. When not checked, the argument is available as expected.

 

Link to comment

That is the intended behaviour. Alfred doesn't pass the query to your Script Filter if you check Alfred filters results. That's why the with input as… and Run Behaviour controls are disabled.
 
Why exactly do you need the query in your script when Alfred is filtering the results? What are you trying to achieve?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...