Forget my old script from above. This one runs faster:
tell application "System Events"
tell application process "bzbmenu"
tell menu bar 1
tell menu bar item 1
try
with timeout of 0.1 seconds
perform action "AXPress"
end timeout
end try
end tell
end tell
end tell
end tell
do shell script "killall 'System Events'"
tell application "System Events"
repeat 2 times
key code 125
end repeat
key code 36
end tell
It’s an ugly hack to bypass the strange delay (OS bug?) as already mentioned here.
If you don’t see any delay with my previous script then… use the previous script.