Applescript 应用程序中使用的 Apple 代码
我阅读了一些使应用程序支持 Applescript 所需的代码示例,但我仍然不明白用于标识命令、类、属性的 Apple 代码是否可以是我想要的任何值(代码除外)对于应用程序类),以及它们是否必须在某个站点中注册。
是否有 Applescript 具有特定含义的代码列表?
I read some examples of code necessary to make an application Applescript-able, but I still don't understand if the Apple codes used to identify a command, a class, a property can be any value I want (with the exception of the code for the application class), and if they must be registered in some site.
Is there a list of codes with a particular meaning for Applescript?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这就是您想要的: AppleScript 术语和 Apple 事件代码。更多内容可以在 此 Apple 文档。
仅由小写字母组成的四字母代码保留给 Apple。否则你完全可以自由选择一个。
据我所知,您不必注册它们。
This is what you want: AppleScript Terminology and Apple Event Codes. More can be found in this Apple document.
Four-letter codes consisting solely of lower-case letters are reserved to Apple. Otherwise you're perfectly free to choose one.
You don't have to register them, as far as I know.
选择你自己的。它们必须是独一无二的。没有办法知道它们是否是唯一的,但它们一定是。
爱它。
Choose your own. They must be unique. There is no way to know if they are unique, but they must be.
Love it.