Populate scroll list automatically with shot number (mel script)



first of all i’m really new to mel scripting(in fact in programming) that’s why this may be a noob question!

I have two scroll list and i want to populate those list with scene numbers and corresponding shot numbers automatically.

Basically the script will look into the project directory and will search for folder (numerically named shot/scene folders) under a specific sub directory and will update the scroll list accordingly.

I’m searching for this for a while but couldn’t fine anything simple. This exact feature is in the Openpipeline script but that script is way too advance for me to reverse engineer.

Please help.