views:

13

answers:

1

Hi all,

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

+1  A: 

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.

Seth
thanx.. it worked :)
Miraaj