Macro Language Reference > Macros > Document > tsavea
  
tsavea
Description
Sets up preferences for the AutoSave function, which are stored with the document.
 
Example 58. Set autosave timing preferences
The example below sets the autosave to every 15 minutes (900 seconds) with a idle delay of 30 seconds and a 10 second countdown.
tsavea 900,30,10
Syntax
tsavea primary_delay:n? ( idle_delay:n? ( countdown:n? ) )
tsavea
[no parameter]
Invoke the AutoSave Setup dialog box.
primary_delay
The amount of time in seconds that must elapse since the first change to a document before an AutoSave will take place. A value of 0 turns AutoSave off. If you leave both idle_delay and countdown at 0, the primary delay parameter instructs PTC ALD to save every n seconds.
idle_delay
The amount of time in seconds that the system must have been idle before the countdown to an AutoSave starts. This option lets you prevent AutoSave from occurring in the middle of something else you are doing.
countdown
The screen countdown warning prior to the saving of the document. If the cursor is moved during the countdown warning, the countdown is halted and starts again from the idle_delay time. This option gives you the opportunity to prevent an AutoSave from happening if, for instance, you have just been trying out a few ideas and don't want to save them.