Exit Application
Purpose 
Closes all open files and exits the FileMaker Pro application.
Format 
Exit Application
Options 
None.
Compatibility 
This script step is also supported in web publishing and in a FileMaker Server scheduled script.
Description 
If this script step is associated with a button and if the file is accessed through the web, performing the script will log out the current web session.
Examples 
The following example, used as a startup script, prevents the user from opening the database on a weekend.
Allow User Abort[Off]
If [DayName(Get (CurrentDate)) = "Saturday" or DayName(Get( CurrentDate)) = "Sunday"]
Exit Application
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)