2011-05-25 80 views

回答

1

中的应用程序:

tell application (path to frontmost application as text) 
    item 2 of (windows whose visible is true) 
end tell 

但AFAIK有没有办法做到这一点,如果第二个窗口是在另一个应用程序。 (除了诉诸如模仿快捷键使用的黑客将焦点移到活动或下一个窗口。)