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

Unified Diff: chrome/browser/cocoa/applescript/examples/advanced_tab_manipulation.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/cocoa/applescript/examples/copy_html.applescript » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/applescript/examples/advanced_tab_manipulation.applescript
===================================================================
--- chrome/browser/cocoa/applescript/examples/advanced_tab_manipulation.applescript (revision 0)
+++ chrome/browser/cocoa/applescript/examples/advanced_tab_manipulation.applescript (revision 0)
@@ -0,0 +1,24 @@
+-- Copyright (c) 2010 The Chromium Authors. All rights reserved.
+-- Use of this source code is governed by a BSD-style license that can be
+-- found in the LICENSE file.
+
+tell application "Chromium"
+ tell tab 1 of window 1
+ print -- Prints the tab, prompts the user for location.
+ end tell
+
+ tell tab 1 of window 1
+ save in "/Users/Foo/Documents/Google" as "only html"
+ -- Saves the contents of the tab without the accompanying resources.
+
+ save in "/Users/Foo/Documents/Google" as "complete html"
+ -- Saves the contents of the tab with the accompanying resources.
+
+ -- Note: both the |in| and |as| part are optional, without it user is
+ -- prompted for one.
+ end tell
+
+ tell tab 1 of window 1
+ view source -- View the HTML of the tab in a new tab.
+ end tell
+end tell
« no previous file with comments | « no previous file | chrome/browser/cocoa/applescript/examples/copy_html.applescript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698