on protectButton whichButton
if script of whichButton is empty
then exit protectButton
answer "Delete " & whichButton & "?" with "OK" or "Cancel"
if it is not "OK" then select empty
end protectButton
This article is adapted from the Claris Tech Info database.