Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
click: on a standard button
Syntax
click button nameIDOrLocation [holding modifierKeys]
Parameters
button nameIDOrLocation -- name, ID number, or location (an {x, y} list)
[holding modifierKeys] -- one or more modifier keys (command, shift, option, control, caps lock), concatenated with "&"
Result
true
Examples
click button "OK"
click button 14 -- ID
click button {10, 20} -- location
click button "Find Next" holding command & option
Notes
- To click a whole series of dialog items in one step, use click sequence.
- Use Player's balloon help to determine the ID number (if any) and location.
- 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
button does not exist or is not enabled
See Also
exists button
get info dialog item
click sequence
set complete match
set forced yield
click radio button
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.