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

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

问题描述

是否可以问哪AppleScript命令它回应的OSX应用程序,如果是这样,怎么样?

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

推荐答案

您需要看一下词典应用程序看到所有的类和命令的应用程序支持。要获得应用程序的字典中的AppleScript的编辑器转到文件>打开字典... 。该操作系统知道所有的应用程序的列表支持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.

需要说明的情况是,有某些命令,一个应用程序是应该支持,但不这样做,或者一个应用程序可能只支持的最低要求。这些都是非常,如打开退出,等你的情况可能会有所不同。

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天全站免登陆