bm1x Posted June 10, 2019 Share Posted June 10, 2019 (edited) My idea is - select some files. - execute a file action (with multiple files) - for each file execute a script import sys query = "{query}" values = query.split("\t") for v in values: execute .......... action with (parameter(v)) My idea is connect action with a script and use this code to split the query. I think this is not the right way to do that in Alfred. Any suggestions ? Now my structure is File action + script (with the code previous) I think is better to use File action + an Alfred object how execute for each file a script + the script that performs the action. Edited June 10, 2019 by bm1x Link to comment
vitor Posted June 10, 2019 Share Posted June 10, 2019 In your Run Script, instead of with input as {query} use with input as argv. Then cycle through sys.argv. 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