
498
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
SimpleSave
Description
Saves a document or book.
If you set the
interactive
parameter to
False
and specify the document or book’s current name for
saveAsName
,
FrameMaker saves the document or book under its current name.
If you specify another filename for
saveAsName
, FrameMaker saves the document or 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)
.If you set the
interactive
parameter to
True
, FrameMaker displays the Save
dialog box and allows the user to choose a filename. The document or book’s current name appears as the default name.
The method returns the document it saved, on success.
On failure, the method returns one of the following values to
FA_errno
:
Returns
Doc
Error
Reason
•
Constants.FE_Canceled (-44)
•
Constants.FE_CanceledByClient (-86)
•
Constants.FV_FileNotWritable (33): File was not writable.
•
Constants.FV_BadSaveFileName (34): The specified file name is not allowed by the operating
system.
•
Constants.FV_BadFileId (35): The file’s operating system ID was bad.
•
Constants.FV_CancelSaveFileIsInUse (50): The file is in use and the user did not or could not
reset the lock. Or the file is in use, and the
Constants.FS_FileIsInUse
(17) parameter is set
to Constants.FV_DoCancel (0), or it is set to Constants.FV_ResetLockAndContinue (7) but
FrameMaker could not reset the lock.
•
Constants.FV_CancelSaveModDateChanged (52): The file has changed since the last time it was
opened or saved in the current session.
•
Constants.FV_LockCouldntBeReset (2): File lock could not be reset.
•
Constants.FV_LockWasReset (0): File lock was reset.
•
Constants.FV_LockNotReset (1): File lock was not reset.
•
Constants.FV_FileIsViewOnly (4): File was View Only.
•
Constants.FV_NonPortableSaveName (37): File had a name that is not portable (Macintosh
only).
•
Constants.FV_NonPortableFileRefs (38): Referenced graphics files had filenames that are not
portable (Macintosh only).
Constants.FE_WrongProduct (-60)
The specified file contains structure and the current product interface is not Structured
FrameMaker.
Constants.FE_FailedState (-45)
Constants.FE_BadParameter (-43)
The filename was invalid.
Constants.FE_FilterFailed (-89)
Constants.FV_InvalidSaveFilter (42): The filter specified by
Constants.FS_SaveFileTypeHint
(16)
is not installed, or the syntax for
Constants.FS_SaveFileTypeHint (16)
is invalid.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...