You can change the selectability of an object, or of all of the objects in a class, by specifying an enable or disable statement. An enabled object is selectable; a disabled object is not. For example:
response to Delete
enable DeleteQuit
You can use the selectability of built-in function in an action statement to find out an object's current state of selectability during runtime.