Script Expression or Script...?
Posted: Thu May 31, 2012 3:50 pm
Hello
I need to find the best option for renaming the files in an assembled job in which all the file names are identical (except for their unique prefix). They need to be renamed to include a suffix in the format _1, _2, _3, etc.
The number of jobs will always be variable, and I need to understand how to build the logic to loop through the files, add the correct suffix based on the number of files in the job folder and then exit.
The Rename element has a script expression option property, but I think this functionality may require a script element.
Does anyone have any code snippets for this kind of functionality to point me in the right direction?
Thanks in advance.
I need to find the best option for renaming the files in an assembled job in which all the file names are identical (except for their unique prefix). They need to be renamed to include a suffix in the format _1, _2, _3, etc.
The number of jobs will always be variable, and I need to understand how to build the logic to loop through the files, add the correct suffix based on the number of files in the job folder and then exit.
The Rename element has a script expression option property, but I think this functionality may require a script element.
Does anyone have any code snippets for this kind of functionality to point me in the right direction?
Thanks in advance.