Advertisement
bocciaman

Close Tabs to the Right of Active Tab

Mar 21st, 2022
3,555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Safari"
  2.     set indexActive to index of current tab of window 1
  3.     repeat until (get index of last tab of window 1) = indexActive
  4.         close last tab of window 1
  5.     end repeat
  6. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement