but it didn't tell me which file is unsaved.
how can i know this?
it seems i can use 'dw.canSaveDocument'.
so i have to get all opened docs including they related files.
dw.getRelatedFiles only returns the current active document's related files.
and dw.getDocumentList only return document BUT NOT INCLUDE they related files.