特定应用程序将接受什么applescript? [英] What applescript will a particular application accept?

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

问题描述

我看到很多应用程序都可以响应像这样的 applescript 消息.

I see a lot of applications that can respond to applescript messages such as this one.

tell application "Safari"
    return URL of front document as string
end tell

如何查询应用程序以了解它接受哪些命令?有没有这样做的工具?

How can I query an application to find out what commands it will accept? Is there a tool for doing so?

推荐答案

在 AppleScript 编辑器中,执行打开词典",选择您感兴趣的应用程序,然后您将获得一个显示命令及其文档的漂亮浏览器(如果开发者选择提供任何).

In AppleScript Editor, do "Open Dictionary", select the application you are interested in, and you get a nice browser that shows the commands and their documentation (if the developers have chosen to provide any).

这篇关于特定应用程序将接受什么applescript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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