A slightly buggy Triangulate.rb is available at Ruby Library Depot to first triangulate faces. The script messes up on a few types of faces, but it does save work. Add a one-step undo by inserting
model.start_operation "Triangulate" ### one-step Undo
after line 56, entities = model.entities.