3c1426ea86
R=johnniwinther@google.com Review URL: https://codereview.chromium.org//345553008 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38014 260f80e4-7a28-3924-810f-c04153c831b5
58 lines
1.2 KiB
AppleScript
58 lines
1.2 KiB
AppleScript
-- Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
-- for details. 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 "Firefox 29" to activate
|
|
|
|
delay 3.0
|
|
|
|
tell application "System Events"
|
|
keystroke "n" using command down
|
|
|
|
delay 1.0
|
|
|
|
keystroke "l" using command down
|
|
|
|
keystroke "http://localhost:8080/"
|
|
-- Simulate Enter key.
|
|
key code 36
|
|
|
|
delay 10.0
|
|
|
|
keystroke "l" using command down
|
|
-- Simulate Tab key.
|
|
key code 48
|
|
key code 48
|
|
key code 48
|
|
key code 48
|
|
|
|
-- Simulate End key.
|
|
key code 119
|
|
|
|
-- Simulate Home key.
|
|
key code 115
|
|
|
|
-- Simulate Tab key.
|
|
key code 48
|
|
|
|
-- Simulate Cmd-Up.
|
|
key code 126 using command down
|
|
|
|
-- Simulate Down.
|
|
key code 125
|
|
key code 125
|
|
key code 125
|
|
key code 125
|
|
key code 125
|
|
|
|
-- Simulate Cmd-Right.
|
|
key code 124 using command down
|
|
|
|
-- Simulate Delete
|
|
key code 51
|
|
|
|
-- Simulate Cmd-Down.
|
|
-- key code 125 using command down
|
|
|
|
end tell
|