
497
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Returns
Object
Syntax
GetUniqueObject(objType, unique)
Parameters
Close
Description
Closes a document or a book.
Note:
If there are unsaved changes in a document and you set
Constants.FF_CLOSE_MODIFIED (1)
for the
flags
parameter,then the
Close()
method abandons the changes and closes the file anyway.
Note:
If you set the
flags
parameter to 0, the
Close()
method aborts the Close operation and returns
Constants.FE_DocModified (-8)
.
The method returns
FE_Success
, on success.
On failure, the method returns the following value to
FA_errno
:
Returns
int
Syntax
Close(flags)
Parameters
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document
Constants.FE_TypeUnNamed (-19)
Objects of the specifies type are not identified by UIDs
Constants.FE_NameNotFound (-20)
Objects with the specified UID could not be found
Parameter name
Data Type
Optional
Description
objType
int
No
The type of object (for example, FO_Pgf)
unique
int
No
UID 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
Specifies whether to abort or close open documents or books if
they have unsaved changes. Set the
Constants.FF_CLOSE_MODIFIED (1) flag to close open
documents and books regardless of their state.