Scripting action to retrieve a list of files

I’ve written a workflow similar to this for another purpose. You still have to run it by hand, but it’s still easier than editing a script every time.