populate a pulldown menu with folders from a list.
Posted: Sat Feb 06, 2010 3:39 pm
I am trying to create a list of MP3 files in folders using a QT player, to play the files,
So far I can list mp3 files in a single folder, and play those files one by one,
I have several folders with MP3 files, I was hoping to create a pulldown menu
where the folders of the active directory is listed, so I could change from folder to folder listing the mp3 files of each folder.
I attempted to call the above function and store the result so I could try to create a list of folder for the pull down menu,
But I could get no result,
I am not sure where I am going wrong, I tried calling the function several times,
function filteredFolders is in the stack script, is there a special method of calling functions contained in the stack?
As an aside note, I tested in a revlet, and was able to load the QT player controls, but they are unresponsive,
So far I can list mp3 files in a single folder, and play those files one by one,
I have several folders with MP3 files, I was hoping to create a pulldown menu
where the folders of the active directory is listed, so I could change from folder to folder listing the mp3 files of each folder.
Code: Select all
# Returns a filtered list of folders in the current directory
function filteredFolders
return filterDots(the folders)
end filteredFolders
But I could get no result,
Code: Select all
on mouseUp
filteredFolders
put it into fld "foldersList"
end mouseUp
function filteredFolders is in the stack script, is there a special method of calling functions contained in the stack?
As an aside note, I tested in a revlet, and was able to load the QT player controls, but they are unresponsive,