The easiest thing to do (if the Thea extension does not expose commands to other coders,) is to assign a shortcut keychord to the export menu item, and then use WIN32OLE
and the SendKeys
method call. (But this only MS Windows.)
See my response to your other post …
Use the ruby code to simulate a mouse click on the sub-menu in menu - #5 by DanRathbun