2017-05-28 1 views
0

AppleScript - 「AXMain」とは何ですか?このスクリプトで

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" とはどういう意味ですか?私はドキュメンテーションやこれに関するどこか他の質問を見つけることができません!

答えて

1

AXは、アクセシブルを表すクラス接頭辞です。

AXMainウィンドウの意味このウィンドウはアプリケーションのメインウィンドウですです。

+0

ありがとうございます!あなたはこれを見つけた場所を覚えていますか?私。どこかに隠れた書類があれば? – Dylanthepiguy

+0

[OS X用アクセシビリティプログラミングガイド](https://developer.apple.com/library/content/documentation/Accessibility/Conceptual/AccessibilityMacOSX/index.html#//apple_ref/doc/uid/TP40001078-CH254)があります。 -SW1)。プロパティーは詳細には説明されていませんが、ほとんどは自明です。 – vadian

関連する問題