我认识到 Google Chrome 和 Chromium 尚未高度启用 AppleScript。但是,我想知道是否有办法使用“系统事件”来隐藏特定的窗口或选项卡?
这是我到目前为止所拥有的......
tell application "System Events"
tell process "Google Chrome"
repeat with theWindow in windows
set thePageName to title of theWindow
if thePageName contains "ABC" then
-- HIDE theWindow command here
end if
end repeat
end tell
结束告诉
我可以访问我想隐藏的窗口,但找不到实际隐藏它的命令。
此外,如果有一种方法可以重复窗口中的选项卡,那就更好了。
谢谢