Dynamic output directory for file copy/rename
Hi,
I'm copying/renaming thousands of image files using a .csv import that I would like to file based on a given job name. Is it possible to dynamically create the output directory based on an attribute field in the .csv e.g <orig_name>,<new_name>, <job_name>
Thanks
David
I'm copying/renaming thousands of image files using a .csv import that I would like to file based on a given job name. Is it possible to dynamically create the output directory based on an attribute field in the .csv e.g <orig_name>,<new_name>, <job_name>
Thanks
David
You will need to import your csv file twice (in the same batch).
First run Import -> Files from CSV... to import the old filenames and rename them.
Then run Import -> Data from CSV... which will generate tags based on the columns in the csv file.
Finally set Batch mode: Move and set your Output folder based on the tag <csv:3>
For example, simply setting Output folder = <csv:3> will move each renamed file into a sub-folder named as the corresponding value in column 3 of the csv file, created in the folder containing the original file.
First run Import -> Files from CSV... to import the old filenames and rename them.
Then run Import -> Data from CSV... which will generate tags based on the columns in the csv file.
Finally set Batch mode: Move and set your Output folder based on the tag <csv:3>
For example, simply setting Output folder = <csv:3> will move each renamed file into a sub-folder named as the corresponding value in column 3 of the csv file, created in the folder containing the original file.
Reply to #2:
Hi David,
Thanks for the quick reply! I'll give this a go.
Thanks again
David
Hi David,
Thanks for the quick reply! I'll give this a go.
Thanks again
David