2. The main script has rules, say if age of last run of a script, say 'slow optimize', is older than 'x' days, then run that script.
Thanks for sharing your idea, I appreciate it. Perhaps in the future I will add something like that, but at the moment I do not want to extend the MyDefrag scripting language into a full programming language, with things such as number calculations, string manipulations, if-then, while, goto, and many other things commonly found in programming languages.
Perhaps a tip: use your favorite programming language to do what you want, and then from that language call MyDefrag. Practically all programming languages have a facility to run other programs.