save currentDocument as "com.omnigroup.omnigraffle.HTMLExport" in tp
that should do it.
Here’s a js for automation version that works:
var g = Application('OmniGraffle')
g.save(g.windows[0].documents[0], {
as : "com.omnigroup.omnigraffle.HTMLExport",
in : Path('/Users/example/Desktop/blah')
});
Export to a directory sandboxing is okay with, too.
We have a bug filed to make the shorter identifier work.
(Formatting became jankified during copy/paste, fixed thanks to thanks draft8!)
var g = Application('OmniGraffle');
g.save(g.windows[0].documents[0], {
as: "com.omnigroup.omnigraffle.HTMLExport",
in : Path('/Users/example/Desktop/blah')
});