Applescript-什么是;AXMain“;什么意思?
在此脚本中:Applescript-什么是;AXMain“;什么意思?,applescript,Applescript,在此脚本中: global frontApp, frontAppName, windowTitle set windowTitle to "" tell application "System Events" set frontApp to first application process whose frontmost is true set frontAppName to name of frontApp tell
global frontApp, frontAppName, windowTitle
set windowTitle to ""
tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp
tell process frontAppName
tell (1st window whose value of attribute "AXMain" is true)
set windowTitle to value of attribute "AXTitle"
end tell
end tell
end tell
return {frontAppName, windowTitle}
“AXMain”是什么意思?我在任何地方都找不到关于这个问题的文档或其他问题 AX是表示可访问的类前缀
AXMain
窗口表示此窗口是应用程序的主窗口。谢谢!你记得你在哪里发现的吗?也就是说,如果某个地方有隐藏的文档?有一个解释该技术的文档。这些属性没有详细描述,但大多数都是不言自明的。