When using populate() with a combobox or listbox, it sets two internal identifiers, i.e, fileType
and currentDir
. I’ve now exposed these so you can query them with cabbageGet:
SCurrentDir cabbageGet "sampleCombo", "currentDir"
SFileType cabbageGet "sampleCombo", "fileType"
printf "Current dir: %s - Current file type: %s\n", 1, SCurrentDir, SFileType