在AppleScript中按键查找记录
有没有办法通过其中一个键的值获得记录而不循环? 我一直这样做: set theKey to 22 set theRecords to {{key:11, value:"foo"}, {key:22, value:"bar"}} repeat with theRecord in theRecords if key of theRecord = theKey then display dialog (key of theRecord as text) & ":" & value of theRecord end if end repeat