如何在 SenseTalk 中记录对象属性

How to log object properties in SenseTalk

在 SenseTalk 中记录对象的所有属性的最简单方法是什么?

像这样C# example但是茄子脚本?

讲道理objects are represented as propertyLists. You can iterate over the keys of an object using the exact same syntax as you would with a propertyList.

set mike to {current:["Mike and the Mechanics","Genesis"],previous:"Red 7"}

repeat with each item of keys(mike)
  put it & ": " & property (it) of mike
end repeat

// current: [Mike and the Mechanics,Genesis]
// previous: Red 7