I have been trying in vain to do this in both automator and shortcuts.
The trouble seems to be happening right at the very start. I can’t seem to figure out how to get selected files from finder to be passed as input to a shell script running exiftool.
I actually thought this might be a good thing for me to test using chatGPT for as it’s meant to be good at this type of thing and while I assume the shell scripts it was generating were probably good, it couldn’t seem to get me passed this basic first step.
I’ve tried making the shortcut a quick action, which by default adds the ‘receive’ action to the shortcut, but somehow it seems to be impossible to get the output from that to be the input for the shell script, nothing works. This was tested with a few debugging steps to log the output and it definitely looks like that first step is where things are going wrong. I really don’t get it. This was way harder than I expected.
Here’s a small example shortcut that opens a file dialog and uses it in a shell script: https://www.icloud.com/shortcuts/a1d29c165ba14b7a910de0a603443b3a