Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / applescript / examples / advanced_tab_manipulation.applescript
blobd45bd86b6107b5568abedf9d4518234a1f2160c5
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.
5 tell application "Chromium"
6 tell tab 1 of window 1
7 print -- Prints the tab, prompts the user for location.
8 end tell
10 tell tab 1 of window 1
11 save in "/Users/Foo/Documents/Google" as "only html"
12 -- Saves the contents of the tab without the accompanying resources.
14 save in "/Users/Foo/Documents/Google" as "complete html"
15 -- Saves the contents of the tab with the accompanying resources.
17 -- Note: both the |in| and |as| part are optional, without it user is
18 -- prompted for one.
19 end tell
21 tell tab 1 of window 1
22 view source -- View the HTML of the tab in a new tab.
23 end tell
24 end tell