Skip to content

Instantly share code, notes, and snippets.

@martijnengler
Created September 29, 2016 10:18
Show Gist options
  • Save martijnengler/c062ce94fd1edf9cdb0183365bc8e0d1 to your computer and use it in GitHub Desktop.
Save martijnengler/c062ce94fd1edf9cdb0183365bc8e0d1 to your computer and use it in GitHub Desktop.
tell application "Chrome"
set output to "Total number of tabs in Chrome:
"
repeat with i from 1 to number of window
set output to output & "Window " & i & ": " & the number of tabs of window i & "
"
end repeat
output & "
Total: " & the number of tabs of every window
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment