The shortcut included below works as a quick action or service and saves the exif data of files selected in a Finder window to a text file in the source folders. After installing the shortcut, a checkmark has to be set before “Finder” (see screenshot), or, as an alternative, the shortcut can be run as a service. The -G exiftool option identifies and sorts exif tags by group name.
I feel that I failed to thank you for your message on the thread I started re the problem jpeg and an Automator workflow. So thanks!
I have not used the Shortcuts app so your posts are illuminating with regards to what it can achieve. I had a brief look this morning and was slightly baffled by how the app stores its data : its all rather ipadish in that it seems to want to hide where the shortcut files are stored.
I shall try and work though the examples that you have published above.
All shortcuts are stored in a database, much like the macOS Notes app. This concerned me at first, but then I wrote a shortcut that creates a backup copy of every individual shortcut (about 28 KB each). These have to be restored one at a time which is a bit tedious–fortunately the only time I’ve had to do this was when I did a clean install of Sequoia.