Merging .tif files, and renaming the files
Posted: Thu Mar 14, 2013 9:35 am
Dear friends
I have the following challenge, that I hope one of you could help me solve?
Objective:
Merge 2 Tiff files into one file, and renaming the new merged file file(s) so that the filename would contain our internal code number + the total amount of files in the folder with merged files, and the page number of each file.
Example 1: internal code number _total number of pages_page number+ .tif
Example 2: 2802-02_20tp_01pg.tif
Background:
I have a TIFF file with black lineart, that I would like to merge with the color file. The files are in separate folders, and are named like this
Folder with black files:
01_black, 02_black, 03_black and so on.
Folder with colored files:
01_color, 02_color, 03_color and so on.
The automation process described below, I don't have a problem with, if I only had to perform a PS task on one .tif file. The challenge for me is how to first open one file in one folder, e.g.. "01_black", perform process step 02, 03, 04 and five, then locate file 01_color in the color folder, and perform process step 6-10., then followed by the same procedure for black and color files starting with 02_name.
The normal procedure when merging the files manually would be as follows
01. Open PS
02. Open the black line art file (start with 01_name)
03. "Select all" (cmd+a)
04. Copy (cmd+c)
05. Close the file
06. Open the color file
07. Choose the black channel (cmd+6)
08. Paste (cmd+v) the black file from your clipboard into the black channel
09. Choose all channels (cmd+2)
10. Close the asset
One the above is solved, and I'M left with a folder with the merged files, I need to rename the merged assets to comply with the naming described in the above.
Note: When adding the files to the input folder, it would be in a folder containing the name of the internal code, so I assume you could grab the code number from the folder, and adding it to the files later in the process.
Br. Esben
I have the following challenge, that I hope one of you could help me solve?
Objective:
Merge 2 Tiff files into one file, and renaming the new merged file file(s) so that the filename would contain our internal code number + the total amount of files in the folder with merged files, and the page number of each file.
Example 1: internal code number _total number of pages_page number+ .tif
Example 2: 2802-02_20tp_01pg.tif
Background:
I have a TIFF file with black lineart, that I would like to merge with the color file. The files are in separate folders, and are named like this
Folder with black files:
01_black, 02_black, 03_black and so on.
Folder with colored files:
01_color, 02_color, 03_color and so on.
The automation process described below, I don't have a problem with, if I only had to perform a PS task on one .tif file. The challenge for me is how to first open one file in one folder, e.g.. "01_black", perform process step 02, 03, 04 and five, then locate file 01_color in the color folder, and perform process step 6-10., then followed by the same procedure for black and color files starting with 02_name.
The normal procedure when merging the files manually would be as follows
01. Open PS
02. Open the black line art file (start with 01_name)
03. "Select all" (cmd+a)
04. Copy (cmd+c)
05. Close the file
06. Open the color file
07. Choose the black channel (cmd+6)
08. Paste (cmd+v) the black file from your clipboard into the black channel
09. Choose all channels (cmd+2)
10. Close the asset
One the above is solved, and I'M left with a folder with the merged files, I need to rename the merged assets to comply with the naming described in the above.
Note: When adding the files to the input folder, it would be in a folder containing the name of the internal code, so I assume you could grab the code number from the folder, and adding it to the files later in the process.
Br. Esben