Skip to content

Instantly share code, notes, and snippets.

@jcsackett
jcsackett / gist:647265
Created October 26, 2010 16:44 — forked from dpk/gist:646570
-- 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"}