Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 SO.Plz 的新手。如果我错了,请指导我。我正在编写一个苹果 UI 脚本来单击 Mac 应用程序的按钮,但问题是包含该按钮的窗口没有名称(空字符串“”,来自 UIElementInspector)。请帮我看看如何引用窗口。
您通常可以使用索引,例如window 2。可以使用类似的东西在事件日志中查看项目列表
tell application "System Events" to get windows of application process "foo"