Hello, I have a problem with large number of chrome open tabs as the day progresses. Chrome Extensions that remove duplicate tabs miss many duplicates (which have the same root, but the rest of the URL is different) and pose privacy issues.
I have 2 scripts below used within macros taken from this forum that I use a lot (thank you @gglick)
My problem is that I don't want to close all the tabs "whose URL title contains "xyz"". I want to remove all except one (any one) . Is this possible ?
thanks in advance for your time and help
set closeTab to "zoom" as string tell application "Google Chrome" set _W to a reference to every window repeat with W in _W close (every tab of W where the title contains closeTab) end repeat end tell
tell application "Google Chrome" tell front window close (every tab whose URL contains "facebook") close (every tab whose URL contains "zoom") close (every tab whose URL contains "linkedin") end tell end tell