Skip to content

Instantly share code, notes, and snippets.

@dschneider
dschneider / gist:294256e447cd52c7855ad374b9cef0fa
Created April 14, 2023 09:46 — forked from rentzsch/gist:1047967
Close a Chrome Tab using AppleScript
tell application "Google Chrome"
set windowList to every tab of every window whose URL starts with "https://mail.google.com"
repeat with tabList in windowList
set tabList to tabList as any
repeat with tabItr in tabList
set tabItr to tabItr as any
delete tabItr
end repeat
end repeat
end tell