Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
drag: through a whole sequence of locations
Syntax
drag through listOfLocations [holding modifierKeys]
Parameters
through listOfLocations -- list of locations, each an {x, y} list, the horizontal and vertical number of pixels from the upper left corner of the frontmost window
[holding modifierKeys] -- one or more modifier keys (command, shift, option, control, caps lock), concatenated with "&"
Result
true
Examples
drag through { {4, 27}, {4, 60}, {200, 60}, {200, 27} }
drag through { {40, -10}, {50, 50, screen coordinates} } -- drag window to an absolute screen position
Notes
- This verb may operate too quickly for an application to keep up. Use set mouse delay to set a short delay.
- By default, coordinates are relative to the frontmost dialog or window. Changing to a different screen size or having the window come up in a different location should have no effect.
- Use the screen coordinates constant (new in 1.03) to treat coordinates as an absolute screen position.
- In most applications, the location is relative to the inside of the window. Negative y values reach into the title bar (if any).
See Also
drag
click sequence
set checkbox sequence
set mouse delay
set target window
move
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.