sample file using operator override
note: it crashes Blender at the moment