Listbox question
Is it possible to Run a different script from a listbox? I have a listbox that will have a list of several different Scripts (Most used scripts). and when the scripts are selected from the list i want them to Run.
var Pan1=w.tabs[0].add ('panel {text: "!! USEFULL SCRIPTS !!", preferredSize: [-1, 200],orientation: "column",alignChildren: ["left","Center"]}');
mL = Pan1.add("listbox", ["0", "0", "600", "600"]);
with (mL){
for (var i = 0; i < 1; i++)
mL.add ("item", "Text Auto FIT" ) // Run this script and the one below. etc...
mL.add ("item", "Crop Marks");
mL.revealItem (mL.items.length - i/1);
Pan1.show ()
}
