This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- based on John Gruber's original Safari Source in BBEdit script | |
-- http://daringfireball.net/2003/01/safari_source_in_bbedit | |
-- and duct tape | |
tell application "Safari" to set theSource to do JavaScript "window.document.documentElement.outerHTML" in document 1 | |
tell application "MacVim" | |
activate | |
make new text window with properties ¬ | |
{contents:theSource, source language:"HTML"} |