Buddy Files and Versioning

Started by mvkuilen, August 16, 2020, 12:37:38 AM

Previous topic - Next topic

mvkuilen

Is there an expanded version of the online help for those that need a bit more handholding?  I need a translation of the master expression and link expressions. One) to understand what the existing ones mean and two) to possibly modifying or even building my own.

My immediate need is to have the versions of my raw files that DXO creates be associated with the original file. The various output files for different end uses are created in different subfolders and each output file usually has a suffix appended to the original file name.
ex:
raw folder: 2020-08-15.CR2
subfolder1: fullsize: 2020-08-15.jpg
subfolder2: jpg-1024: 2020-08-15-1024.jpg
subfolder3: tablet: 2020-08-15full.jpg

Is there a repository where various examples have been stored that could be reused?

Mario

#1
If you have selected CR2 in the startup assistant (when creating your database), IMatch should have created a buddy file rule for CR2.
Do you have this? Does it not work?

IMatch uses regular expressions to be able to handle all the various file naming schemes applications and users come up with.
While looking a bit scary at first, they are real problem solvers. The IMatch help as a dedicated section (Regular Expressions) which explains them. This help topic also has pointers to online resources and tools.

The default for CR2 is

Master Expression \.(cr2)$

This expression means "all file names ending with .cr2".

The link expression is ^(_*{name})[+\-_]*[0-9|a-z]*\.(jpg|jpeg|dng|tif)$

This grabs all files starting with the same name as the master file and any number of following digits or characters or +-_

When I test the default for CR2 with your file names using the built-in test tool (Testing Expressions) for file relations, all are matched. So it should work out-of-the-box, with no need for you to change anything.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mvkuilen

Thanks for the link to the regular expressions, exactly what I was looking for. Now for some study time.

I selected "CR2 in the startup" but what if I change camera or import images made in other cameras? Can this section be rerun?

Mario

You can just create another buddy file relation and then copy/paste as needed.
IMatch supports any number of buddy and version relations (keep it simple, though).

Usually only the master expression changes, and the syntax is always \.(ext)$
If you want to use the same buddy setup for multiple masters, e.g. CR2 and CR3, you can just extend the master expression to use multiple extensions:

\.(cr2|cr3)$

There are several examples in the Configuring File Relations help topic. It also has a link to the regular expression help topic and other related help topics. Well worth a read.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook