I have an Automator application where I'd like to drag a folder onto it and have it create a duplicate (sibling) of that folder with the duplicate's files renamed. For example, starting with the following:
root +--svgs |--icons_a.svg +--icons_b.svg
When dragging the
svgs directory onto the application, I would like to end up with the following:
root |--svgs | |--icons_a.svg | +--icons_b.svg +--renamed-svgs |--a.svg +--b.svg
But it throws the following:
Not sure how to debug the error, but how can I get the first "Run Shell Script" action to return either the "renamed-svgs" folder or that folder's contents?
Or is there a better way to do this whole thing?