I have a couple of shapes (more than 500 to be precise) that are groups of paths. Like in the image below you can only see the outer shape and any holes are grouped with the outer shape.
In order to achieve the result I want, I just ungroup the object, select Path->Difference and get the shape I want.
Left: How it looks after the import, Middle: The shapes in the group, Right: Result after ungrouping and difference
Is there a way to basically implement the following pseudocode in Inkscape?
FOREACH GROUP g in DOCUMENT
ObjectPaths = UNGROUP(g)
PATH_DIFFERENCE(ObjectPaths)
I would appreciate any solution that doesn't involve clicking over 500 times.