Home | History | Annotate | Download | only in examples
      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 tell application "Chromium"
      6   tell window 1
      7     -- creates a new tab and navigates to a particular URL.
      8     make new tab with properties {URL:"http://google.com"}
      9     -- Duplicate a tab.
     10     set var to URL of tab 2
     11     make new tab with properties {URL:var}
     12   end tell
     13 end tell
     14