Up until recently I had an apple script to open the source of a web page displayed in Safari in BBEdit this is now no longer working: tell application "WebKit" to set the_source to source of document 1 Returns: WebKit got an error: Can't make |source| of document 1 into type reference.
Probably a WK2 issue.