Quit application command
A Quit command is a request for an application to terminate. If no optional parameters are specified, the Quit command has the same result as choosing the Quit menu item in the application.SYNTAX
quit referenceToApplication [ saving saveOption ]PARAMETERS
- referenceToApplication
- A reference of the form
applicationnameString, where nameString is a string that matches the name of the application you want to quit as it is listed in the Application menu.
Class: Reference- saveOption
- A constant that specifies whether to save documents that have been modified before quitting. The possible values are
yes,no, andask. The valueyesspecifies to save the documents. The valuenospecifies not to save the documents. The valueaskspecifies to ask the user whether or not to save the documents.
Class: Constant
Default Value:askRESULT
NoneEXAMPLES
tell application "Scriptable Text Editor" quit saving no end tell quit application "Scriptable Text Editor" saving ask
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help