Skip to content

Instantly share code, notes, and snippets.

@laclefyoshi
Created March 6, 2011 00:24
Show Gist options
  • Save laclefyoshi/856860 to your computer and use it in GitHub Desktop.
Save laclefyoshi/856860 to your computer and use it in GitHub Desktop.
copy the source of active tab in Google Chrome
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