I’m writing a little script that will create a simple dropdown list and within the list I want to it to display the scripts in a given directory. Then when you select your script, you press the button and it will run that script. I can figure out how to run the scripts once selected but I can’t seem to get the drop down list to read in the folder of scripts.
So I have it setup as follows:
rollout Roll_1 “WorkScripts” width:300 height:57 Rolledup:true
dropdownlist WorkScripts “WorkScripts Directory”
button Run_btn “Run Selected script” enabled:true
on button Run_btn pressed do
run blah blah script
I’m not sure how I get it to read in the scripts from the desired folder. Anyone care to offer a hint of advice?
thanks in advance.