Hi All,
I've used Automator in the past for some very basic renaming but a current issue is beyond my grasp and I haven't been able to find an answer elsewhere. I'm working with hundreds of image files for a book which all adhere to a naming convention created by my workplace.
The problem is that an image is being deleted and I'd obviously like to avoid manually renaming the rest of the chapter. Renaming the rest of the chapter is within my skill set– where I'm getting stuck is that some of the file names are identical save for an additional letter.
This is probably a bit confusing so I'll explain in a bit more detail. The files are numbered like this: xxxx_yyy_fig_zzz.ext. The digits in the x space represent the project's unique number, the digits in the y space represent the chapter number, fig classifies the file as a figure as opposed to a table, and the digits in the z space represent the file number. However, for this project some of the figures have multiple parts (a, b, c,) so these are named xxxx_yyy_fig_zzza.ext, xxxx_yyy_fig_zzzb.ext, etc. Is there any way that I can use automator to increment the digits in the z place while retaining the part-designating letters?
To hopefully simplify this, please see my screenshot. Let's say that 10344_005_fig_001 was being deleted. How could I use automator to rename the rest of the chapter to make up for this change while not losing the 6a and 6b designation.
I've used Automator in the past for some very basic renaming but a current issue is beyond my grasp and I haven't been able to find an answer elsewhere. I'm working with hundreds of image files for a book which all adhere to a naming convention created by my workplace.
The problem is that an image is being deleted and I'd obviously like to avoid manually renaming the rest of the chapter. Renaming the rest of the chapter is within my skill set– where I'm getting stuck is that some of the file names are identical save for an additional letter.
This is probably a bit confusing so I'll explain in a bit more detail. The files are numbered like this: xxxx_yyy_fig_zzz.ext. The digits in the x space represent the project's unique number, the digits in the y space represent the chapter number, fig classifies the file as a figure as opposed to a table, and the digits in the z space represent the file number. However, for this project some of the figures have multiple parts (a, b, c,) so these are named xxxx_yyy_fig_zzza.ext, xxxx_yyy_fig_zzzb.ext, etc. Is there any way that I can use automator to increment the digits in the z place while retaining the part-designating letters?
To hopefully simplify this, please see my screenshot. Let's say that 10344_005_fig_001 was being deleted. How could I use automator to rename the rest of the chapter to make up for this change while not losing the 6a and 6b designation.