I am attempting to get a choose from list setup going to select multiple items from a list, then display the choices and the related item in a corrasponding list. It works when I select blah, when I select blah and others, but not when don’t select blah. Its hard to explain, you just have to try the script to see what I mean. Please help.
set aList to {"blah", "green", "how", "now", "brown", "cow"}
set bList to {"blah1", "green2", "how3", "now4", "brown5", "cow6"}
set chList to choose from list aList with multiple selections allowed
set firstListCount to 1
if number of items in chList ≥ 1 then
repeat with i from 1 to number of items in chList
if item firstListCount of chList = item i of aList then
set tempItem1 to ""
set tempItem2 to ""
set tempItem1 to tempItem1 & item firstListCount of aList
set tempItem2 to tempItem2 & item i of bList
display dialog "you selected " & tempItem1 & " which equals " & tempItem2
set firstListCount to firstListCount + 1
end if
end repeat
end if
Thanks again.
Busy day today, 3 new topics posted.
Chuckles