script for viewing database size distribution

I’ve decided to try something rather challenging (for my skill set). I would like to create an applescript that generates an index of all my groups and files sorted from the largest (in MB) to the smallest. You see, my DB is 1.32GB right now and I would like to peek in to see what are the major culprits. Is there a way to ask Devonthink Pro for the file and group size directly, or so I need to have my script or the finder calculate it?

Gabe

No, you have to travel through the whole hierarchy on your own and calculate the sizes of groups. See “Remove URLs.scpt” for example