Jump to content

Cannot copy several files with the "copy with finder" automation task

Recommended Posts

Hi, folks!!!


   I'm trying to use the 'copy with finder' automation task to copy several files from one folder to another. It works fine with just one file, even though I think it is possible to specify more than one in the interface... How can I do that??

Thanks a lot!! 😉 


Screenshot 2024-02-02 at 08.38.41.png

Link to comment

You're going to need to split the variable (the array) when passing it on. If you don't object to a little self-promotion 😀 take a look at my workflow on the Alfred Gallery: Move to new folder. That should give you a better idea of how to do it. If it's still not clear please don't hesitate to ask again.



Link to comment

Also worth noting that by default Alfred passes multiple files as multiple arguments. So if you don’t need to save them to a variable for later processing (@Stephen_C’s workflow does) you may be able to just connect the objects.


Let me be more specific: if you connect a Universal Action directly to that Automation Task, it’ll just work with multiple files. It’s only when you need to do stuff in between (meaning you need to save the file list to a variable) that splitting later comes into play. For that case, see @Stephen_C’s linked workflow.


Also, just to round off the information, when applicable the output of Automation Tasks is also multiple arguments. In the case of that Automation Task, the output is the final paths of the files, each in an argument. In other words, you could have Universal Action → Automation Task to Copy Files → Automation Task to Move Files → Automation Task to Trash Files and it would all work, doing each action in sequence.


Link to comment

Hi! Thanks for the prompt replies!

I thought it was possible to select which files I'd like to copy from A to B by using the interface of the automation (Copy with Finder). 

What I really need: imagine a folder containing a variety of file types, and the task is to establish a workflow to selectively retrieve only three or four specific PDF documents from there.


Thanks a lot.

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...