How can I skip dialog boxes when using createOutlines()?
var doc = app.activeDocument;
var currentPage = doc.pages[0];
var textFrames = currentPage.textFrames;
var textFrame = textFrames[0];
var myOutlines = textFrame.createOutlines(false);
Here is a short script, made from a larger script I'm working on. When I run it, I get this dialog box:

Selecting "Yes" creates outlines as you'd expect, there's no actual problem here. Selecting "No" results in this error dialog box:

I believe I'm only getting this when trying to outline composite fonts. Putting the createOutlines() line inside a try/catch thing doesn't skip the first dialog box, but it does skip the second one (which means no outlines are created, which is not what I want).
How can I make the script automatically pick yes?