Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
With .backup.fm files, isn't the ‘problem’ that FM creates the backup copy on Open, or if it already exists, overwrites it on Open?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks for the piece of code. I'll add it to my collection. I can see where this would be useful in some of the work I do.