Hi, I hope you can help me do 2 things in this script:
1 - As mainList3 allows for multiple selection, I need the countrySel output to be exploded with a comma as delimiter, so, for example: en,it,pt,fr
2 - I need the first mainList, which chooses the month, to have January, February in the selection box, but their actual value has to be 01, 02, … How can I have the values have different labels for the selection box?
choose folder with prompt "Choose destination folder"
set folderSel1 to result as text
set folderSel to POSIX path of folderSel1
set mainList to {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"}
choose from list mainList with prompt "Choose Month:"
set monthSel to result as text
set mainList2 to {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}
choose from list mainList2 with prompt "Choose Day:"
set daySel to result as text
set mainList3 to {"en", "fr", "de", "nl", "it", "es", "pl", "hu", "cs", "pl", "pt", "no", "sv", "jp", "zh_CN", "zh_TW", "ko"}
choose from list mainList3 with prompt "Choose Country:" with multiple selections allowed
set countrySel to result as text
set Tcommand to "/Applications/Everyday" & "\\ " & "Icon.app/Contents/Resources/EverydayIconTool -l " & countrySel & " -m " & monthSel & " -d " & daySel & " -t " & folderSel
tell application "Terminal"
do script Tcommand in window 1
end tell
Thanks