Building .ss01 glyphs that use .ss01 glyphs as components (is there a script for this?)

I’m working on a font that uses a series of .ss0x glyphs to create a pseudo-random feature. I’m generating the .ss0x glyphs by copy/pasting the base glyphs and changing the .001 in the glyph name to .ss0x. This works fine for glyphs built from paths, but in glyphs built with components I don’t get them built from the .ss01 glyphs. For example, I want Aacute.ss01 to be built from A.ss01 and acutecomb.case.ss01, not A and acutecomb.case. Is there a way to do this built in to Glyphs? Does anybody already have a script to do this?

Glyph > Create composites should do the trick.