Skip to content

Instantly share code, notes, and snippets.

@blpabhishek
Created March 7, 2020 14:57
Show Gist options
  • Save blpabhishek/89f85d3219dc1966bf5a56f0e06d9a54 to your computer and use it in GitHub Desktop.
Save blpabhishek/89f85d3219dc1966bf5a56f0e06d9a54 to your computer and use it in GitHub Desktop.
Switch Safari's 5 opened tabs on 2 second delay.
tell application "Safari"
activate
set counter to 0
repeat
set counter to (counter + 1)
tell front window of application "Safari" to set current tab to tab (counter)
delay 2
set counter to (counter mod 5)
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment