Subscribe Bookmark RSS Feed

Autosave

jorgeramosdealm

Community Trekker

Joined:

Feb 20, 2012

Is there some kind of autosave for scripts and tables? I could not find it and after losing lines of code I wrote the following

mypath =

"$sample_data/";

scr = Window( "script.jsl" );

scrr = scr[Script Box( 1 )] << get text;

Save Text File(

  mypath || (scr << Get window title ; ),

  scrr

);

aus = Window( "Autosave" );

saus = aus[Script Box( 1 )];

Delete Symbols( scr, scrr, aus );

Schedule( 360, saus << run() );