Question
script save file without backup
I just want to share with the community the scripts that I have made
When you save a document a backup is created automatically, this script allows you to save without framemaker creating the backup
function saveFile(file) {
retProps = new PropVals();
saveProps = GetSaveDefaultParams();
var index = GetPropIndex(saveProps, Constants.FS_AutoBackupOnSave);
saveProps[index].propVal.ival = Constants.FV_SaveNoAutoBackup;
file.Save(file.Name, saveProps, retProps);
}
var file = File("C:\\Users\\USUARIO\\Documents\\framemakerfile.fm");
saveFile(file);
