Search code examples
applescriptkeystroke

Keystroke command to Show All Bookmarks in Safari not working


I am trying a simple Keystroke command to Show All Bookmarks in Safari 5.0.2 but it is not working -

tell application "Safari" to activate
tell application "System Events"
    keystroke "B" using {option down, command down}
end tell
end

Can anyone suggest me where I may be wrong?

Thanks,

Miraaj


Solution

  • Try a little 'b':

    tell application "Safari" to activate
    tell application "System Events"
        keystroke "b" using {option down, command down}
    end tell
    

    The big B translates to Shift+B.