scripting button response to an alert

Jun 21, 06

A little help please…

I’m scripting an extreemely simple shutdown routine and I don’t know how to get AScript to respond to an alert that keeps poping up asking “Do you want to Quit” with buttons; Cancel (default) or Quit.

Can someone tell me how to script this or point me in the right direction.

Using Mac OS 9.2.2

The script looks like this.

Tell application “xxx”
Activate
“Quit”
end tell

The application responds with an alert that pops up asking “Do you want to Quit” with buttons; Cancel (default) or Quit.

I’ve looked and looked but can’t find anything but…

if button returned of result is “XXX” then

But there is no result, because I want to script the result.

Any help would be greatly appreciated at this point.

Thanks

Andrew