Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
set: target window for subsequent commands
Syntax
set target window to nameOrNumber
Parameters
to nameOrNumber -- name or number (by stacking order) of the window
Result
true
Examples
set target window to "Tools" -- Photoshop palette
set target window to "Untitled" -- the image
set target window to 1 -- set back to the default
Notes
- By default, the origin for all coordinates is the upper left corner of the frontmost dialog or window. This verb sets the origin to the upper left corner of a specific window, palette or dialog.
- If Player's balloons show values that don't makes sense, either negative or larger than the "frontmost" window, perhaps a palette is actually frontmost. Either close the palette or set the target to the document.
- This setting remains in effect until changed, or until a reboot. If you set it, be sure to set back to 1 when you are finished. If the target points to a non-existent window, Player may not be able to locate any dialog items.
- If another window, palette or modeless dialog covers the target window, mouse actions will go in the frontmost window rather than the target -- exactly the same behavior that a user would encounter.
- By default, Player matches only the number of characters specified in the verb parameter. This feature has the benefit of ignoring trailing punctuation, but will occasionally find a false match.
- By default, name matching is not case sensitive.
Errors
window does not exist
See Also
click location
drag
set complete match
set menu selectionlocation
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.