applescript:更新属性?
这可能是一个非常基本的问题;
我总是看到
make new document with properties { x: "1", y: "2", z: 3" }
但是以后如何更新这些属性?
tell first document
-- i am trying to set the volume name property
set volume name of document to "BLA"
-- also tried:
set properties of first document to {volume name:"BLA"}
end tell
但这根本不起作用,官方语法是什么?网上找不到。
This is probably a very basic question;
I always see
make new document with properties { x: "1", y: "2", z: 3" }
But how do I update these properties later?
tell first document
-- i am trying to set the volume name property
set volume name of document to "BLA"
-- also tried:
set properties of first document to {volume name:"BLA"}
end tell
But that doesn't work at all, what is the official syntax? Can't find it online.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要定位适当的文档(或具有该属性的任何内容),但访问属性的方式与任何其他 记录例如,属性
请注意,应用程序属性可能不可写 - 检查其脚本字典。
You will need to target the appropriate document (or whatever has the property), but the properties are accessed the same way as any other record property, for example
Note that an application property may not be writable - check its scripting dictionary.