Relink images with TBB catalog numbers
This script for InDesign I wrote for a client who makes catalogs of banknotes. Images are changed from time to time, and their file names reflect the changes.

The file name is comprised of the following, separated by underscores:
- country
- issuer abbreviation
- value
- currency
- date (YYYY.MM.DD)
- TBB catalog number
- Pick catalog number
- prefix (optional)
- serial number (optional)
- suffix (optional)
- f/r (front/rear designation)
- .jpg extension
The script processes missing links and looks for the image with a similar name (according to the abovementioned convention).
I can't share my client's files, so I prepared my own files for testing here.
How to test it?
Download and unzip the test files. Open My relink test v2026 - before.indd file. Note that all the links are missing. Run the script and choose the Links folder. The links will be relinked to the files with though similar but different names.
Note: the files with ADA were relinked to files with BNA:

Currently, there are two versions: 3.0 is mine, and 3.1 with edits recommended by Eugene Tyson injected into my code.
However, according to my testing against the real files, version 3.0 works a little faster than 3.1: 50-51 secs vs 1 min. 4-8 secs.

Click here to download the script.
