Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been using the AppleScript below as an Automator service in order to get Safari to close all tabs to the right of the current tab. However I have updated to Mavericks (10.9) and find that this no longer works.

Can anyone advise how this AppleScript should be changed in order to make it work again?

Here's the script:

    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
share|improve this question
    
Cross-posting is not generally allowed, so can you delete this question? If the script (or my version of it) stops working again, edit the question at Ask Different. –  Lri Oct 26 '13 at 14:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.