Diacritics on a massive font with alternates

I have a font with a lot (4) of s.alternates on each glyph like: a, a.ss01, a.ss02, a.ss03, a.ss04 and I need to make the corresponding diacritic for each alternate. Is there a better way than do it manually (maybe using ui) or help me on building a script to make them faster?

Thanks a ton

  1. Create (duplicate and rename) them: make sure they have the right name suffix
  2. Rebuild them with Glyph > Make Component Glyph (Cmd-Opt-Shift-C): Base glyphs with the same suffixes will be preferred.