Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: chrome/browser/cocoa/applescript/examples/copy_html.applescript

Issue 3180006: Cleaned up the SDEF... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 -- Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 -- Use of this source code is governed by a BSD-style license that can be
3 -- found in the LICENSE file.
4
5 -- This script copies the HTML of a tab to a TextEdit document.
6 tell application "Chromium"
7 tell tab 1 of window 1 to view source
8 repeat while (loading of tab 2 of window 1)
9 end repeat
10 tell tab 2 of window 1 to select all
11 tell tab 2 of window 1 to copy selection
12 end tell
13
14 tell application "TextEdit"
15 set text of document 1 to the clipboard
16 end tell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698