| Code looks good. Can you use it with copy and paste formated like this Brian? :-) 
Boolean Union of selected objects:
  code: 
script: /*boolean union*/
var factory = moi.command.createFactory( 'booleanunion' );
factory.setInput( 0, moi.geometryDatabase.getSelectedObjects() );
factory.commit();
 |