确定应用程序响应哪些 AppleScript 命令 [英] Determining what AppleScript commands an application responds to

查看:20
本文介绍了确定应用程序响应哪些 AppleScript 命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以询问 OSX 应用程序响应哪些 Applescript 命令,如果可以,如何响应?

Is it possible to ask an OSX application which applescript commands it responds to, and if so, how?

推荐答案

您需要查看应用程序的字典才能查看应用程序支持的所有类和命令.要在 Applescript 编辑器中访问应用程序的字典,请转到 File >打开词典....将出现操作系统知道支持 Applescript 的所有应用程序的列表,但操作系统不会捕获所有应用程序,因此您可以使用浏览"按钮.如果应用程序不支持 Applescript,那么它将无法在对话窗口中选择.

You need to look at the Dictionary for an application to see all of the classes and commands the application supports. To get to an application's Dictionary in the the Applescript Editor go to File > Open Dictionary.... A list of all the applications that the OS knows supports Applescript will appear, but the OS won't catch them all so you can use the Browse button. If an application doesn't support Applescript, then it won't be selectable in the dialog window.

对此的警告是,应用程序应该支持某些命令但不支持某些命令,或者应用程序可能仅支持最低要求.这些都非常非常简单,例如openquit 等.您的里程可能会有所不同.

The caveat to this is that there are certain commands that an application is supposed to support but don't, or an application may only support the minimum requirements. These are all very, very simple like open, quit, etc. Your mileage may vary.

这篇关于确定应用程序响应哪些 AppleScript 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆