从AppleScript的列表中选择多个项目

时间:2018-10-30 16:57:26

标签: list applescript

我需要一个“从列表中选择”对话框,其结果向我显示了另一个“从列表中选择”对话框并返回结果。我无法弄清楚为什么下面的代码没有显示列表对话框中的第二个选择。

set hi to choose from list {"oh, hey", "sup", "bye"}
if hi = item 1 then
    set hey to choose from list {"how are you?", "no time for sall talk"}
end if

1 个答案:

答案 0 :(得分:0)

set hi to choose from list {"oh, hey", "sup", "bye"}

if hi = {"oh, hey"} then
    set hey to choose from list {"how are you?", "no time for sall talk"}
end if