View Generated Source for Frontmost Safari Window in BBEdit

Nice tweak by David Kendal to an AppleScript I posted back in 2003. Both show the source for the current Safari window in BBEdit. His tweak, though, shows the generated source, after JavaScripts have finished diddling with the DOM and WebKit has parsed the HTML. Update: I’ve made a few special modifications myself.

Update: Change “BBEdit” to “TextWrangler” and the script works just fine, by the way.

Tuesday, 26 October 2010