change the selected button

Is there some way to change which button of a “dialog-like” window is the selected button using AppleScript? I say “dialog-like” in that I’m really using a window and not a display dialog or display alert. I have 2 buttons, the “action” button on the right which is selected and default, but after the user clicks it one time, I’d like the selected button to change from the “action” button on the right to the other button which is on the left.

I tried doing something like “set selected of button “go” to false” but after trying to compile the code I got “Can’t get selected. Access not allowed.”

Well, duh, I just checked the ASStudio Reference, and there isn’t a “selected” property for the button. Well, wait, since the button class inherits from the control class, then theoretically, if the control class had a selected property, then it could work. But… Control class doesn’t have that so I gotta look elsewhere.

Would setting the key equivalent of the button possibly have the same effect, indirectly? Or would it have something to do with first responder? Or I suppose I could use a call method if I really have to.

Anyway, thanks in advance…

Changing the key equivalent of a button to “ASCII character 13 as Unicode text” works just great to change it to the default button.

Hope this helps…