PreFab...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



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

| Top |


do menu popup| Prev | Home | Next |click radio button

Updated on 2/5/97 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.