So is your ultimate objective to have each successive Save(as) file created with a unique name so none is overwritten? Otherwise, I don’t get why the builtin timed autosave isn’t working for you.
I would STRONGLY challenge your use of SaveAs.
Yes, it will make a new file, but it makes the new file the Current file as well.
I doubt you want to do that.
Based on your comments, I think you want to use IncrementalSave instead.
This makes a new file in the same folder as the current file (like SaveAs), it concatenates a incrementing number to the end of the file, but unlike SaveAs, it leaves you in your CURRENT file.
Then you will have a clean copy of your file with a unique name in the event of a problem.
Well… IncrementalSave leaves you in the newly named file - it does not save a copy and keep you in the original file - this was a gripe of mine for years but when we changed the behavior, sometime in the V5 period, it caused all kinds of horrible things for users who depend on the current behavior. A new command was added as a test
testFileSnapshot
which allows saving of the current state to a new file on disk but keeps the current file open. I like this better myself but we recently discovered it is broken in V6… It has been fixed, I think for 6.7, possibly 6.8. The dash version of testFileSnapshot has lots of goodies to let you specify how the file naming and incrementing should be handled, and the normal non-dash command just does it with no questions asked. The trick for @jean77flip will be getting this on a timer, assuming that behavior is what he wants.
Perhaps it’s time to show the testFileSnapshot command some respect by adding it’s features to the AutoSave options, or making it an alternative to AutoSave on the backup menu that Jean circled in a previous post?
It sounds so far as if the important modifications to AutoSave would be:
-Allow more flexibility in file naming and incrementing
-Choice to remain in current document
along with AutoSave’s current timed background save capability, it should provide Jean (and many other users) with what he wants without a need for special scripts.