Skip to content

Instantly share code, notes, and snippets.

@loisaidasam
Last active October 11, 2021 10:45
Show Gist options
  • Save loisaidasam/00b8bf0ec540718cf237 to your computer and use it in GitHub Desktop.
Save loisaidasam/00b8bf0ec540718cf237 to your computer and use it in GitHub Desktop.
Rotate Tabs
# via http://apple.stackexchange.com/questions/39430/automatically-scan-cycle-through-safari-tabs
# plus http://superuser.com/questions/263198/switch-between-google-chrome-tabs-using-applescript
tell application "Google Chrome"
repeat
repeat with i from (count of tabs of first window) to 1 by -1
set active tab index of first window to i
delay 30
end repeat
end repeat
end tell
# via http://apple.stackexchange.com/questions/39430/automatically-scan-cycle-through-safari-tabs
tell application "Safari"
repeat
repeat with i from (count of tabs of window 1) to 1 by -1
set current tab of window 1 to tab i of window 1
delay 30
end repeat
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment