Created
October 18, 2014 11:30
-
-
Save cmittendorf/8dd260b1a69098baa1f2 to your computer and use it in GitHub Desktop.
open Safari HTML source in BBEdit using new Yosemite JavaScript automation
This file contains 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
var Safari = Application ("Safari") | |
if (Safari.documents().length > 0) { | |
var source = Safari.documents()[0].source() | |
Application("BBEdit").Document({"contents":source, "source language":"HTML"}).make() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment