I have been learning and using Extendscript with After Effects CS6 (normally use maxscript and python) to create a dockable UI for After Effects. I have managed to do this, but need to restructure the code to search within folders in a root folder to grab the .jsx files that form the nodes on the treeview I have created.
currently, all the .jsx files are in one root folder, but due to a restructuring of the folder system, we now have a folder that houses each script
I need to be able to return/collect the names of folders within the root folder into an array that I can loop over in the later part of the script.
So far I have code that will return the path to the folders inside the root folder, but this is not what I need and I do not want to have to split the strings into constituent parts just to get the last part of the path.
The root folder in the image below is "c:\AFX\theRoot\" with folders inside named script1, script2, script3 script4
I was going to post an image of the folder structure, but I am not allowed due to a requirement to have a specific rating.