Icon for Keyboard Trigger on Mac

I want to call the MenuBar application without using the mouse. CopyClip is the name of the exact application. All I have found on the internet is Ctrl-F2 or Ctrl-F8, neither of which allows you to access your downloaded apps from the menu bar. Its weeks I've been trying to do it. BetterTouchTool Does not allow this type of action. I'm guessing I need to write a little applescript that does this but doesn't know how any help or guidance is greatly appreciated.

Since the pictures speak here, I want to. This is what happens when I click the menubar icon

+3


source to share


1 answer


You must change this to suit your specific application.

Run them separately in the Script editor and check the results:

tell application "System Events" to menu bar items of every menu bar of ¬
    process "SystemUIServer"

      

...



tell application "System Events" to value of attributes of menu bar items of menu bar 1 of ¬
    process "SystemUIServer"

      

...



tell application "System Events" to value of attributes of menu bar 1 of ¬
    process "BetterTouchTool"

      

This is how you press "Preference" from BetterTouchTool:

tell application "System Events" to tell process "BetterTouchTool"
    click first menu bar item of menu bar 1
    click menu item 1 of menu 1 of menu bar item of menu bar 1
end tell

      

Here's how you turn off WiFi on AirPort:

tell application "System Events" to tell process "SystemUIServer"
    click (first menu bar item whose value of attribute "AXDescription" contains "Wi-Fi") ¬
        of menu bar 1
    try
        click menu item 2 of menu of ¬
            (first menu bar item whose value of attribute "AXDescription" contains "Wi-Fi") of ¬
            menu bar 1
    end try
end tell

      

Accessibility Inspector

is your friend.

+2


source







All Articles