Enter the Hero Blog Post

After a quick search I found this blog post. DotNetNinja found a javascript function editDocumentWithProgID2 which performs this exact operation and is part of the SharePoint 2010 Core.js file.

Simple!