2014-02-18 67 views

回答

1

您可以使用AppleScript中的過濾器來獲取已過濾對象的列表,當然如果應用程序支持它的話。以下是一個將返回瀏覽器打開此頁面的進程的示例。

tell application "System Events" 
    get name of every process whose name of every window contains "applescript - Get the name of the application with window title \"someWinTitle\" - Stack Overflow" 
end tell