私はこれまでに次のAppleScriptを持っています:
# List of possible options to control the development environment.
set WhatDoUWantToDoList to {"1", "2", "3", "4"}
set MySites to {"test1", "test2"}
# task selected
set selectedTask to {choose from list WhatDoUWantToDoList with prompt "Pick your task now!!!" without multiple selections allowed}
if selectedTask is equal to {"1"} then
display dialog selectedTask
else
# site selected
set selectedSite to {choose from list MySites with prompt "Pick the site your working on!!!"}
if (selectedTask is not equal to false and selectedSite is not equal to false) then
display dialog selectedTask
display dialog selectedSite
else
display dialog "you messed up!"
end if
end if
リスト1でオプション1が選択されている場合は、選択されたタスクのみが表示されますが、リスト1で他のオプションが選択されている場合は、新しいコードブロックに移動する必要があり、リスト2でオプションを選択する必要があります。あなたはリスト1とあなたが台無しにしたリスト2でキャンセルします。
私がここで欠けているものについて何かアイデアはありますか?