in the unload command, there is not a switch to remove an actual variable script file. If you just try to unset the variables, it actually removes not only the value that is set but also the variable name from script editor and the variable script file.
Some of the potiental users of my script run multiple scripts and prefer to run 1 at a time. I was trying to accomplish a full unload of anything related to my script and then on reload, the variables are set again with the values the user had orginally set.
I figured out a work around, but not sure if it is the best method to use. It is as following:
.load -a script\aliases.mrc
.load -rs script\remote.mrc
.load -rv script\variables.mrc
.unload -a script\aliases.mrc
.unload -rs script\remote.mrc
.save -rv variables.mrc
.unset -s %scriptname*
.remove -b script\variables.mrc
.rename variables.mrc script\variables.mrc
It would be nice if the load & unload commands had the same switches.