What applescript will a particular application accept?

大憨熊 提交于 2020-01-04 14:39:13

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/2091278/what-applescript-will-a-particular-application-accept

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!