Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Alert

Built-in

SYNTAX

Alert [message] [-s]

DESCRIPTION

The Alert command displays an alert box containing the prompt message until the user clicks the OK button.

INPUT

Standard input, unless you specify the message parameter.

OUTPUT

None

STATUS

Alert can return the following status codes:

0

no errors

1

syntax error

PARAMETERS

message

Specifies the alert box message. If the message contains any special characters, place single quotation marks around the special characters or around the entire message.

OPTIONS

-s

Runs silently. By default, Alert beeps when the alert box is displayed.

EXAMPLES

The following example displays the alert box shown in Figure 1 and waits for the user to click OK.

Alert Please insert next disk to be searched.

Figure 1: An alert box

SEE ALSO

Confirm

Request

 
 


Last Updated July 2000