About this site's lack of design: Yes, it's supposed to look this way — I'm helping create a new sandbox theme for WordPress (see it on GitHub).

Dan Rubin's SuperfluousBanter

Suffering from chronic idiocy since 1977

|

View Browser Source (AppleScripts)

Our set of Apple­Scripts was men­tioned yes­ter­day by Zeld­man, and was coin­ci­den­tally updated to ver­sion 1.3 — for those of you in the dark, Webgraph’s View Browser Source Apple­Scripts (cre­ated by yours truly) fill a still-glaring gap present in all OS X web browsers: the lack of an option to view web page source in an exter­nal edi­tor of your choosing.

Our scripts solve this prob­lem by using the Apple­Script hooks built into most OS X web browsers, as well as a few clever uses of Unix apps like cURL, to pick up the source of the site you are view­ing, and insert it into a new doc­u­ment in your text edi­tor of choice (actu­ally, the text edi­tor must be selected from the list I chose to sup­port, but I’ve cov­ered pretty much all the usual options, includ­ing com­mand line edi­tors, and I’m will­ing to add text edi­tors to the list upon request).

They are really won­der­ful, if I do say so myself (I use them every day), and for folks like Zeld­man, these scripts pro­vide a much-needed fea­ture not seen since the days of OS 9…

Down­load your copy today, and let me know what you think — I’m always open to suggestions.

This item was posted by Dan Rubin on Friday, August 29th, 2003.

Categories:

You can follow comments on this item via the RSS 2.0 feed.

Comments are closed.

One comment on “View Browser Source (AppleScripts)”

  1. Posted by Rob Higgins on Friday, May 7th, 2004.

    Thank you very much for com­ing up with this script. I had a really old Pow­erPC, and was forced to use Win­doz for the past sev­eral years and have very much got­ten used to right click­ing a web page and being able to edit the source code via notepad, and I was quite upset (not to men­tion astounded) that IE or Netscape for OS X didn’t allow such a feature.

    One ques­tion though… is it pos­si­ble to get Vew Brower Source to actu­ally open the exist­ing html file (like in IE–>Notepad), instead of open­ing a new text file for the code dump? Espe­cially if it is a local file, it’s a pain to have to imme­di­ately “save as…” each time you view a new page?