add properties
Command
Add the properties from one property list or object to another. If the destination property list already has a property with the same name, it is retained and left unchanged. To replace existing properties in the destination, use the replace properties command instead.
Example:
set neighbor to {name:"Don", eyes:"blue"}
set friend to {disposition: "cheerful"}
add properties of friend to neighbor
put neighbor --> {disposition:"cheerful", eyes:"blue", name:"Don"}
- modification in 1.64: changed to treat a property of the destination property list whose value is <missing value> the same as though the property were not there, and replace it with the corresponding source property value
Related Terms
Related terms in the SenseTalk Dictionary.