How You Can Right Click Using Keyboard on Mac

1281

The right-click target in Mac OS X had several fundamental values, mainly if you need to interact with files and menus. Pressing the right-click button on a mouse normally opens up a menu where you can quickly choose a command.

We have explored and use the best methods to right-click using the keyboard on Mac. Let us start:-

 

HOW YOU CAN RIGHT CLICK USING APPLE SCRIPT AND AUTOMATOR:-

  1. First, open the Automator and select the “Contextual Workflow” to build a new service.

RIGHT CLICK USING APPLE SCRIPT

 

  1. A drop-down box will open. In this menu, select “no input” in “Workflow Receives” and assure that the next drop down box reads “any application.”

 

  1. Now at the top, you will view the search box. In a search box option search, “”Run AppleScript””. When your searching is complete, then drag and drop “Run AppleScript” in the Automator workflow.

 

  1. Then, ‘paste the AppleScript code into the workflow by replacing the comment that says, “your script goes here.” The code is given here:

 

tell app ‘System Events’ to set FrontApp to name of the first

a process whose frontmost is true

tell app “System Events.”

tell app process frontApp

set _selection to value of attribute “AXFocusedUIElement”

tell _selection to perform action “”AXShowMenu””

end tell

end tell

run apple script

 

  1. When you have all done, then you have to save the workflow with a proper name. You can choose any name. I prefer “Right clicker.” Now, open the “System Preferences,” then move to the “Keyboard,” then select “Shortcut” and then click on the “Services.” Find your service name, which you have build.

right click keyboard mac

 

  1. Now to fix a keyboard shortcut to the service, click on the “Add shortcut.” You can set any keyboard shortcuts of your choice. For this, I choose “command+shift+”.

 

  1. When you have done, then again go to the “System Preferences,” then tap on the “Security and Privacy,” then select the “Privacy” option and then choose the “Accessibility” option.

 

  1. Here, to add a new app clicks on the plus icon. Choose “Automator,” and then you have to add it to the list of apps that are allowed to control your computer.

right click using keyboard on mac

  1. You’ll add each app where you want to use this keyboard shortcut to the list. I’veI’ve used Finder to ensure that the shortcut works with my keyboard. Now you can use the Keyboard shortcut. Try to open any file using right-click in the Finder app.

 

HOW TO RIGHT CLICK USING ALFRED:

If you don’t wish to waste time writing the Apple script, you can work on an Alfred workflow. The free versions are also available, but to use workflow, you have to take the paid version of that app.

 

  1. Firstly, download the Right Click workflow.
  2.  When your download is finished, open that file, and Alfred automatically added it.

    3. Then you have to update the workflow. For this, You have to open the Alfred and then type the “Update.”

    4. When your update has been installed, then go to the “Alfred Preferences” and head to the “Workflows.”

right click using keyboard

 

  1. Then click on the Right Click workflow, and to use for right-clicking, then set your favored hotkey. You’ll now be available to use the hotkey to right-click on any chosen element on your Mac.

 

Also read: How Can You Stop Websites from Requesting Notification Access

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here