I am trying to add a unique iterated identifier to a folder of files using the XMP-dc identifier tag using the following command
"-identifier=Digital:05:2005:'${FileSequence;$_=sprintf('%.5d',$_+1)}'" DIR
but all I'm getting as output is Digital:05:2005:${FileSequence;$_=sprintf('%.5d',$_+1)} Digital:05:2005:"photos id number in folder"
This is common mistake 5c (https://exiftool.org/mistakes.html#M5).
Also, you have some extra quotes there.
- Phil