Finally. I can now go about re-designing my photo workflow (and this site’s photo album) around standards-based tagging, instead of coding workarounds for the simplest things.
Update: I just confirmed that this is not scriptable in any decent way and filed #5722046 asking Apple to create an “Export Photos” Automator action.