@estatistics I'm not suggesting not to use the custom command feature, but to write the actual logic in a script and call *that* scrip from the custom commad, just because it's easier to write and maintain when it's not super trivial than in the custom command dialog entry -- and potentially that when it's complex enough it can be useful to have it at hand from other places.