Currently, I'm using the following code snippet in my Wolfram script file to perform the periodical and automatic save task:
saveTask = CreateScheduledTask[FrontEndExecute[FrontEndToken["Save"]], 60];
StartScheduledTask[saveTask];
I noticed the above method will enable this feature for all of my files opened in Mathematica. I want to know if there is a method to enable this feature only for the file where this command was evaluated.
Regards,
Zhao