this is the answer).The second question that needed an answer was how to (re)use the listed scripts as scripts. I continued to google and found the (beginning of) an answer here.
It works!
Updated 09-02-2020
function scriptsToArrayToScripts(){ var scripts = []; for(k in this){ if(/something/.test(k)){ scripts.push([k,this[k]]); } } for(var s=0;s<scripts.length;s++){
var paramOne = "abc";
  var paramTwo = "xyz";
  
     if(scripts[s][0] == "somethingelse"){
  
        scripts[s][1](paramOne,paramTwo);
      
      }
   }   
}
 
Geen opmerkingen:
Een reactie posten