I'm trying to understand how sidecar files are logically associated with their respective photo files.
As far as I can tell, both Apple and Adobe save nondestructive editing information in XMP files, except Apple uses the .AAE file extension, whereas Adobe uses .XMP. (I use a Mac, and I currently use both Apple Photos and Adobe Lightroom with the expectation to abandon one of them in the future. Occasionally and carefully, I may also use the Finder Desktop or third-party utilities for managing my files. My photos often originate from my iPhone Camera app.)
What I'm not clear about is how photo-editing software and/or operating systems understand that photo file
X.jpeg is associated with the sidecar file
X.aae, and photo file
Y.aae is associated with the sidecar file
Is this file-association information intelligently contained somewhere, maybe using some sort of unique IDs for the photo files, or are these relationships dumb, i.e., simply associated because the (base) filenames are the same?
I'm asking because:
- I'd like to understand how renaming a photo file via the shell has to be handled when a sidecar exists. (Presumably, photo-editing programs like Photos or Lightroom take care of this automatically.)
- I'd like to understand if/how to find and manage orphaned sidecar files. For example, I'd like to determine a sidecar's original parent photo and re-associate the two. Likewise, I'd like to determine with confidence that an orphan sidecar does not have a parent photo in my library and then delete accordingly.
- I'd like to know if I can find out if a photo file should have a sidecar file (or once did), but the system thinks it is missing.
I've looked for documentation describing the technical ins-and-outs of this subject, and I've found nary a thing.