1

我正在尝试一个简单的按键命令来显示 Safari 5.0.2 中的所有书签,但它不起作用 -

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

谁能建议我哪里可能错了?

谢谢,

米拉杰

4

1 回答 1

3

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.

于 2010-10-20T05:19:12.667 回答