Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
drag: between a pair of locations
Syntax
drag from location to location [holding modifierKeys]
Parameters
from location -- an {x, y} list, the horizontal and vertical number of pixels from the upper left corner of the frontmost window
to location -- 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 from {4, 27} to {4, 60}
drag from {30, -10} to {31, 28, screen coordinates} } -- drag window to the upper left corner of the screen
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 through
click location
move
set mouse delay
set target window
drag through
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.