Skip to content

Instantly share code, notes, and snippets.

@incidunt
Forked from rentzsch/gist:1047967
Created November 2, 2018 06:46
Show Gist options
  • Save incidunt/324537a78fd083af9de4e1493c7e8ee0 to your computer and use it in GitHub Desktop.
Save incidunt/324537a78fd083af9de4e1493c7e8ee0 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment