/* Incremental Save v1.0 - (c) 2010 P. Karabakalov (project3d.narod.ru) I.S. saves incremental file versions while keeping the name of the latest - most-up-to-date version always the same as the original file. This is good for XRef'ing because the filename does not change. I.S. designed to serves as a replacement of the default incremental saving routine. The base trick is simple - I.S. made a copy of the last saved version and rename it by removing trailing numbers from its name, so your initial file is always up-to-date. [*] Important note: If the initial/original file has not number at the end of its name (e.g. "scene.max") then the first incremental save (e.g. "scene01.max") will overwrite the original file. Next saves goes as intended. [*] Additional note: Always test how works your all new scripts before start to use it in production! */ macroScript incrementalSave2 category:"Tools" internalCategory:"Tools" toolTip:"Incremental Save" buttonText:"Incremental Save" ( if maxFileName != "" then ( -- if the scene saved max saveplus -- incremental file save TheFile = maxFilePath + (trimRight (getFilenameFile maxFileName) "1234567890") + ".max" --remove trailing numbers if doesFileExist TheFile do deleteFile TheFile copyFile (maxFilePath + maxFileName) TheFile ) else checkForSave() ) -- Last update: 2010-06-26 -- P.S. ...and as the main rule for any free stuff said: USE THIS SCRIPT AT YOUR OWN RISK