> click at the loc of button "foo"
>and
> send mouseUp to button "foo"
Try:
set hilite of button "foo" to true
send mouseup to button "foo"
set hilite of button "foo" to false
If the button script executes too fast you may not see it flash and you
may have to put a delay in. You can test this by just setting it to true to
start with and set it to false later. You can create a "Flash" subroutine
with a built-in wait that you can pass a button name to if you do this a lot.
You probably want to flash the button before you execute the button script if
it does something like opening a window, so that the falsh doesn't occur after
the big event.
Rick