
430
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Parameters
Close
Description
Closes a document, book, dialog box, or Frame session.
The
flags
parameter specifies whether to abort or to close open documents or books if they have unsaved changes.
Set the
Constants.FF_CLOSE_MODIFIED
flag to
True (1)
to close open documents and books regardless of their
state.
The method sets
FE_Success
on success. On failure, the method assigns the following value to
FA_errno
:
Returns
int
Syntax
Close(flags)
Parameters
SimpleSave
Description
The
SimpleSave()
method saves a book.
If you set the
interactive
parameter to
False
and you specify the book's current name for
saveAsName
,
FrameMaker saves the book under its current name.
If you specify another filename for
saveAsName
, FrameMaker saves the book to that filename.
If you specify an empty string (""), FrameMaker does not save the file. Instead it sets
FA_errno
to
Constants.FE_BadParameter (-43)
.
Parameter name
Data Type
Optional
Description
objType
int
No
The type of object (for example, FO_Pgf).
unique
int
No
The unique ID of the object.
Error
Reason
Constants.FE_DocModified (-8)
The document was modified and the flags parameter was set to 0.
Parameter name
Data Type
Optional
Description
flags
int
No
The Close() method closes the document or book.
Note:
Flags specify whether to abort or to close open
documents or books if they have unsaved changes. Set
the FF_CLOSE_MODIFIED flag to True (1) to close
open documents and books regardless of their state.