Created
March 6, 2011 00:24
-
-
Save laclefyoshi/856860 to your computer and use it in GitHub Desktop.
copy the source of active tab in Google Chrome
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
tell application "Google Chrome" | |
view source of active tab of window 1 | |
repeat while loading of active tab of window 1 | |
delay 0.1 | |
end repeat | |
select all of active tab of window 1 | |
copy selection of active tab of window 1 | |
delete tab (active tab index of window 1) of window 1 | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment