![]() |
![]() |
![]() |
|
![]() | |
![]() |
![]() |
![]() |
![]() |
![]() |
Log In | Not a Member? |
Support
![]() |
![]() |
SYNTAX Quit [-c | -n | -y] DESCRIPTION The Quit command quits MPW. Executing the standard quit procedures, Quit first runs the Quit script located in the {MPW} directory. This script saves the Worksheet and runs any user-created Quit scripts. These Quit scripts should have a name of the form Quit•≈ (for example, Quit•SaveOpenFiles) and should also be located in the {MPW} directory. After executing these scripts, Quit attempts to close all open files. For each open file that has been modified, Quit displays a confirmation dialog box asking whether you want to save the changes. You can use the -c, -n, or -y options in scripts to handle this question noninteractively. When all open files have been closed, Quit exits the MPW shell. This command is equivalent to the Quit menu item. INPUT None OUTPUT None ALIAS RESOLUTION This command resolves Finder aliases when looking for the Quit and Quit•≈ scripts. STATUS
Quit can return the following status codes:
Note PARAMETERS None OPTIONS -c Prevents the display of any confirmation dialog boxes by automatically responding Cancel. This causes the command to abort if any windows need to be saved. -n Prevents the display of any confirmation dialog boxes by automatically responding No. This causes all modified windows to be closed without saving any changes. -y Prevents the display of any confirmation dialog boxes by automatically responding Yes. This causes all modified windows to be saved before closing. EXAMPLES The following command line quits MPW, automatically saving all modified windows: Quit -y SEE ALSO
|