APPLICATION NOTE #201 USING AUTOSAVE IN XYWRITE III PLUS This application note will help you to utilize the Autosave feature which is available in XyWrite III Plus (version 3.55 and later). Autosave will, at prescribed intervals, automatically save the document you are working on. AUTOSAVE The Autosave (AO) setting causes XyWrite to automatically save the current file to disk at regular intervals. AO is a default setting which may be entered into a printer file, into the STARTUP.INT file, or from the command line. For information on how to set a default at any of these locations, see the Default Command section of the XyWrite III Plus Reference Guide. When setting Autosave, you need to establish the minimum and maximum intervals between the time you make your first change and the saving of the file. XyWrite starts a timer when you make an edit to a file which you have called to the screen. After the minimum time for Autosave has passed, XyWrite checks to see if you are typing. If you are not typing, XyWrite automatically saves the file. If you are typing, XyWrite waits until you pause and then saves the file. If you still haven't paused when the maximum amount of time has elapsed, XyWrite interrupts your typing and saves the file anyway. ®MD+BO¯Note #1 Defined Block. You will not be able to save a file while there is a defined block of text on the screen. Instead, XyWrite will prompt you with the message ``Please hit F3 so file can be saved.'' ®MD+BO¯Note #2 Default. The initial default is for Autosave to be OFF. Setting the AO Default The following sample command demonstrates the format of the Autosave default (if you enter the command from the command line): ®MD+BO¯F5default ao=m,n The first value (m) defines the minimum length of time (0 to 55 minutes) XyWrite should wait before saving the file. The second value (n) defines the maximum length of time (0 to 60 minutes) XyWrite should wait before saving the file. The maximum time value is optional. If not specified, the default will be the minimum time plus 5 minutes. The following examples show Autosave commands as they would be input in a printer file: df ao=30,40 df ao=10 In the first example, XyWrite will try to save the current file to disk 30 minutes after you make your first edit; if there is no pause in your typing, it will automatically save the file after 40 minutes. In the second example, XyWrite will try to save the current file after 10 minutes. If there is no pause in your typing, XyWrite will automatically save the file after 15 minutes (using the default as the minimum time plus 5 minutes). ®MD+BO¯Note #3 Stopping Autosave. To turn Autosave off (from the command line), issue the following command: ®MD+BO¯F5default ao=0,0 ®MD+BO¯Note #4 Current File. While you can use Autosave in any window, it will only store those edits made in the window that is current when the actual save occurs. For example, if you make an edit to a file in window 1 and then start working in window 2, XyWrite will not automatically save the change to the file in window 1 unless you return to window 1 before Autosave takes place. ®MD+BO¯Note #5 Aborting a File. Autosave writes your changes to the file on disk. Therefore, when you issue an ABORT command, XyWrite discards only those changes made since the last Autosave. ®LBRV¯1 ®LBLG¯RUTH ®LBCD¯07C70304 ®LBCT¯0E241646 ®LBAU¯RUTH ®LBMD¯07C70304 ®LBMT¯0E2A3760 ®LBRP¯ ®LBPJ¯ ®LBCM¯ ®LBKY¯ 0ü