Script to Flatten(Rasterize) all Top Level Groups in the document.
Hey,
I am looking for a simple script that will just flatten all top level groups in the document. See this:

I know I can just select and then do CTRL-E, but I have to do it one by one then.
Anyone have a solution? Thanks!
