devxoul
6/26/2011 - 8:56 PM

Close a Chrome Tab using AppleScript

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