Jump to content
bm1x

Multiple File Action (Alfred Way) v4

Recommended Posts

Posted (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 by bm1x

Share this post


Link to post

In your Run Script, instead of with input as {query} use with input as argv. Then cycle through sys.argv.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...