How to Copy Group Info (Names and Number of Items)?

I have a lister set to group files. I want to copy the names of the groups and number of items as they are visible.

Looking at the documentation, I don't see a way with the Clipboard command nor with scripting.

Am I missing something?

We'll add a scripting interface for this in the next update.