Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "Safari"
- set indexActive to index of current tab of window 1
- repeat until (get index of last tab of window 1) = indexActive
- close last tab of window 1
- end repeat
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement