ActionExportHistograms cannot export multiple datasets at once
The ActionExportHistograms
is very obscurely coded, and only one dataset can be exported at a time. The code needs some clean-up, and some more options should be provided to control the output.