Let’s say for example I want to run these commands for automation purposes:
import bpy
bpy.ops.mesh.select_all(action='TOGGLE')
bpy.ops.mesh.remove_doubles()
bpy.ops.mesh.tris_convert_to_quads()
bpy.ops.mesh.select_all(action='TOGGLE')
Unfortunately they can’t run from the text editor, they must be put into a new operator so they are within context. What I am trying to find is a hack that will allow this to happen.
P.S. The most obvious solution is to create a new operator, but this approach is simply “too much effort” considering macros need to be as thin as possible and to be created simply.