Adobe 65030365 Scripting Guide - Page 506
SimpleSave, Description, Returns
UPC - 883919170923
View all Adobe 65030365 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 506 highlights
ADOBE FRAMEMAKER SCRIPTING GUIDE 498 Function Summary 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: Error • Constants.FE_Canceled (-44) • Constants.FE_CanceledByClient (-86) Constants.FE_WrongProduct (-60) Constants.FE_FailedState (-45) Constants.FE_BadParameter (-43) Constants.FE_FilterFailed (-89) Reason • 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). The specified file contains structure and the current product interface is not Structured FrameMaker. The filename was invalid. 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. Returns Doc Last updated 9/26/2011