load/unload? scripts

When you load a script from within another does the loaded script stay in memory? If it does, can you unload it?

Why do I care? I’m loading a sequence of scripts one after the other in a repeat loop, coercing them to text, and saving the text in a scriptable content-searchable database after checking that the one being examined is either not present, or has a later mod date than the one in the db. The routine also quits applications that open after a settable number of them have. I’m concerned that I’ll end up being a memory hog with the original scripts all attached to my converter.

Hi Adam,

Varibles are stored unless you declare them as local.

local var

– rest of script

You can also clear the variable before the script quits and that value will be stored.

gl,