Renaming files inside several folders
Hi, guys,
I am not a scripter and I got not quite enough time to learn scripting, especially so, that my needs for using scripts are very sporadic. I wonder if any of you would help me to get up and running with a script (AppleScript or Automator) to accomplish something like this:
I got several folders full of scanned images. They are named in a way specific to the scanner workflow. I would like to change that naming scheme and combine all files into a single folder.
So, for instance, "folder 1" contains:
- IMG_20150424_0001
- IMG_20150424_0002
- IMG_20150424_0003
- etc…
"Folder 2" contains:
- IMG_20150426_0001
- IMG_20150426_0002
- IMG_20150426_0003
- etc…
"Folder 3" contains:
- IMG_20150429_0001
- IMG_20150429_0002
- IMG_20150429_0003
- etc…
Now, I want to put images from all folders into one folder, but, before I do that, I want to rename contents of each folder so that they are in a continuous sequence from 0001 to 0009 (as per example above). As a result, I want to get something like this:
Single "Folder x" contains:
- IMG_0001_JohnSmith
- IMG_0002_JohnSmith
- IMG_0003_JohnSmith
- IMG_0004_JohnSmith
- IMG_0005_JohnSmith
- IMG_0006_JohnSmith
- IMG_0007_JohnSmith
- IMG_0008_JohnSmith
- IMG_0009_JohnSmith
- etc…
If any additional information is needed, please, ask.
MacBook Pro with Retina display, OS X Mavericks (10.9.5)