creating recurring named folders with Automator
Hello,
I want to use Automator to create multiple folders with the name based on the name of the first file.
I have a list of files like this:
ABT_001.jpg
ABT_002.jpg
ABT_003.jpg
ABT_004.jpg
ABT_005.jpg
ABU_001.jpg
ABU_002.jpg
ABU_003.jpg
ABU_004.jpg
ABU_005.jpg
ABV_001.jpg
ABV_002.jpg
ABV_003.jpg
ABV_004.jpg
ABV_005.jpg
ABX_001.jpg
ABX_002.jpg
ABX_003.jpg
ABX_004.jpg
ABX_005.jpg
I would like to place the ABT files in a folder named ABT the ABU files in a folder names ABU the ABV files in a folder named ABV.
Of course I have the option in finder to make a new folder with selection and rename the folder BUT when you have hundreds of folders to make this can be pretty boring.
So I tried to use Automator but it looks like it is unable to make a folder based on a PORTION of the name of the files you choose to be in it.
Anyone can help me with this?
Thank you in advance.
iMac (27-inch, Late 2013), macOS Mojave (10.14)