美文网首页
AppleScript-record对象

AppleScript-record对象

作者: 不写昵称 | 来源:发表于2018-07-29 18:13 被阅读0次

理解
类似于OC中的字典,js中的对象

创建

set user1 to {name:"张三", age:23, weight:55, heigth:170}

获取属性
the 属性名 of 对象

get the name of user1

设置属性

set the name of user1 to "李四"

获取属性数量

get the count of user1 -- 获取属性的数量

相关文章

网友评论

      本文标题:AppleScript-record对象

      本文链接:https://www.haomeiwen.com/subject/jzhtvftx.html