[update]
the "Warning: History will be on for the command since a selected item has history." has been fixed.
been playing around with some basic Mel-scripting and came up with a script that does Edge bridging properly without open edges.
and I would like to share it with Maya Users. Should work with any number of edges selected. Please feel free to post any bugs here.
polyBridgeEdge -ch 1 -divisions 0 -twist 0 -taper 1 -curveType 0 -smoothingAngle 30;
polySelectConstraint -pp 1;
polySewEdge -ch 1 -t 0 -tx 1 -ws 1 ;
delete -ch;
select -clear;
Just paste this into Script editor and drag to the shelf. Or just simply highlight this code and drag it right onto your shelf.
Replies
ch = construction history
It's not working for you because you clear your selection before deleting construction history. In the above example the object is stated, ensuring that history will be deleted. Typically when scripting you want to steer away from selecting/deselecting objects and state them implicitly at the end of mel commands. Selection changes when done in mass, can slow performance of a script immensely. It's a non-issue here because you're not dealing with large selection changes (most likely), but, it's something to keep in mind.