GoogleChromeと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
終わりを告げる
非表示にしたいウィンドウにアクセスできますが、実際に非表示にするコマンドが見つかりません。
さらに、ウィンドウ内のタブを繰り返す方法があれば、それはさらに良いでしょう。
ありがとう