Photoshop closing file

Hi folks

Does anyone know the syntax for closing a PS file so that the changes are saved?

I have:

close front document saving yes

but when my script runs I get the dialog box asking if I want to save the changes.

Thanks

Put this line right after your photoshop tell:

set display dialogs to never