diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/applescript/examples/execute_javascript.applescript')
-rw-r--r-- | chrome/browser/ui/cocoa/applescript/examples/execute_javascript.applescript | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/applescript/examples/execute_javascript.applescript b/chrome/browser/ui/cocoa/applescript/examples/execute_javascript.applescript new file mode 100644 index 0000000..33a34b4 --- /dev/null +++ b/chrome/browser/ui/cocoa/applescript/examples/execute_javascript.applescript @@ -0,0 +1,10 @@ +-- 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. + +-- This script execute a string of javascript code. +tell application "Chromium" + tell tab 1 of window 1 + execute javascript "alert('Hello World')" + end tell +end tell |