Insert the following code: shopt -s extglob add a “Filter Finder Items” action and set it to filter on the condition “none” match “kind is Folder” to make sure you have only files.Īdd a “Run Shell Script” action and make sure it runs /bin/bash and takes its input “as arguments”.
Set it to take “Files or folders” as input.
Your first task (removing a numerical prefix followed by an underscore form file names) can be solved like this: There is no need for dedicated file renaming software to do such relatively simple batch renaming operations – Automator will allow you to create services that do what you want.