0

Is there any way to suppress/disable the Cancel button in a list selection dialog - in other words, force a response? Here's what I came up with (I'm forcing a response by displaying an error message and taking the user back):

try
    with timeout of 3600 seconds -- Wait up to an hour before timing out.
        tell application "Finder"
            activate
            repeat
                set theChoice to choose from list {"yes", "no", "maybe"} with title "Choose from list" with prompt "Pick one" OK button name "Select" cancel button name "Quit"
                if theChoice is false then
                    beep
                    display alert "Noo!"
                else
                    exit repeat
                end if
            end repeat
            theChoice
        end tell
    end timeout
end try

, but I'd rather do right by the user, instead of hinting the selection to be optional.

You must log in to answer this question.

Browse other questions tagged .