yes
yes
is a constant parameter to the
close command or Apple event:
close document 1 saving yes
If this parameter is included, in lieu of its alternatives
ask
or no
, then the closing
application saves the document, if it has been changed, before
closing it. Depending on the application’s default
behavior, it usually prompts you for a filename (if the document does
not have a valid filename) before closing it. Therefore, you should
use the activate command to bring the target
application to the foreground, so that the user can see any dialog
box. See “ask” in this chapter for
more info.