buttonAlert ?-w win? ?-title str? ?-index? ?--? text button ?button...?
Create a dialog with an arbitrary number of buttons. One must specify at least one button. The alert's dimensions are calculated automatically depending on the size of the text argument. The
-title option specifies a string displayed in boldface.
If the -w option is specified, the alert is displayed in a sheet window attached to the window designated by the win argument. Otherwise, the alert is displayed as a modal dialog.
By default, the command returns the name of the selected button but, if the
-index option is specified, it returns the button's index (starting at 0 for the rightmost button).