Scripting might be a solution. There is an imprint
method in the scripting dictionary, and it’s not overly complex to read the image metadata… Well, location
is probably a lot more fun than the rest, as you’d have to read the IPTC dictionary for that. There’s code for this.
Alternatively, you can use exiftool
to extract the data from the image. And if you’re already at the command line, you could take a look at ImageMagick, which probably provides a function to overlay an image with text.