0
我试图在桌面上用AppleScript获取窗口索引(位置)firefox。 我已经走到了这么远,但我不知道如何继续。有人可以给我一些示例代码或线索。 : - |如何检测firefox的窗口索引?
tell application "System Events"
set programs to processes whose visible is true and name is "firefox-bin" or name is "google chrome" or name is "safari"
repeat with program in programs
tell window of application program
#XXX do something
end tell
end repeat
end tell