Hello ASW,
The new script version is the following:
import PhotoScan
chunk = PhotoScan.app.document.chunk
path = PhotoScan.app.getSaveFileName("Specify output path:)
file = open(path, "wt")
for camera in chunk.cameras:
if "Image/Quality" in camera.meta.keys():
file.write(camera.label + "\t" + camera.meta["Image/Quality"]+"\n")
file.close()
Also you can just switch the Photos pane view to Details, select all lines, press CTRL+C and then copy the output (CTRL+V) to the external text editor.