Edit Menu Context on macOS

Suppose you just bought a new Mac, the context menu is relatively open, without many options. And you want to edit the context menu to add new options or delete old options. This TipsMake article will guide you how to edit context menus on macOS.

The drawback is that the context menu on macOS is not as flexible as the context menu on Windows. On Windows, users can easily tweak the Registry to add applications to the right-click menu or perform a certain action. However, macOS is famous for being a "difficult to unlock" operating system, so it is understandable that editing the context menu is more difficult.

Edit Menu Context on macOS Picture 1Edit Menu Context on macOS Picture 1

How to edit Menu Context on macOS

This way of editing context menus on MacOS requires users to have a lot of experience. So in this article TipsMake will guide you through some simple ways to edit the context menu on macOS in the most detailed way so you can easily follow.

Add/remove services in context menu on Mac

The main method for adding and removing items in the context menu (the context menu when you right-click) on macOS is through services. Services appear in the Services drop-down menu when the user hovers over the Service section in the bottom corner on the right-click menu. In addition, macOS also provides GUI-based methods for adding and removing items in the conext menu on Mac.

Step 1: Open the System Preferences application on the Apple menu.

Edit Menu Context on macOS Picture 2Edit Menu Context on macOS Picture 2

Step 2: On the System Preferences window, find and click Keyboard .

Edit Menu Context on macOS Picture 3Edit Menu Context on macOS Picture 3

Step 3: Next click on the Shortcuts tab in the top corner of the window.

Edit Menu Context on macOS Picture 4Edit Menu Context on macOS Picture 4

Step 4: Select Services from the menu in the left pane.

Edit Menu Context on macOS Picture 5Edit Menu Context on macOS Picture 5

Step 5: The screen will display a list of all available services, arranged in main categories. Check the services to enable or disable the display of related services.

Edit Menu Context on macOS Picture 6Edit Menu Context on macOS Picture 6

Step 6: Applications can add their own services here. You can find these services based on the items (files, folders, text) used as input on the context menu. For example, if the item displays on the context menu when you right-click on selected text, you will find this service in the Text drop-down menu.

Edit Menu Context on macOS Picture 7Edit Menu Context on macOS Picture 7

Displays services in the main context menu

If you have many services or use them frequently, you will notice the limitations of having to wait for a drop-down menu to appear to open the services. However, with just one Terminal command to edit the context menu on MacOS, you can display all services on the dropdown menu.

Step 1: Open Terminal in " Applications => Utilities => Terminal.app ".

Step 2: Paste the command below into the Terminal window:

defaults write -g NSServicesMinimumItemCountForContextSubmenu -int 999

Edit Menu Context on macOS Picture 8Edit Menu Context on macOS Picture 8

The above command will default to the minimum services needed to create the Services submenu. The last number in the command (999 in this example) sets the number of items needed to create the Services submenu. If the service number is less than this value, the Services submenu will not appear.

In this case 999 has no different meaning from infinity, so you will see the Services submenu.

Step 3: Exit and restart Finder by entering the Terminal command below:

killall Finder

Edit Menu Context on macOS Picture 9Edit Menu Context on macOS Picture 9

Edit the "Open With" menu

The Open With submenu on the context menu is arranged a bit haphazardly. However, you can completely edit the Open With menu to your liking.

1. Remove duplicates on the Open With context menu

Sometimes the LauchServices database can be corrupted or corrupted, leading to duplicate items in the Open With menu.

Step 1 : Run the Terminal command below to rebuild the LaunchServices database:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Edit Menu Context on macOS Picture 10Edit Menu Context on macOS Picture 10

Step 2: Kill and restart finder with killall Finder command .

You may have to wait a few minutes before restarting to rebuild the LaunchServices database.

2. Prevent specific applications from linking to extensions

You can also prevent a specific application from linking to a specific extension file in the Open With menu.

Step 1: Right-click on the application that has the item you want to edit and then click Show Package Contents .

Edit Menu Context on macOS Picture 11Edit Menu Context on macOS Picture 11

Step 2: Open the Contents folder .

Edit Menu Context on macOS Picture 12Edit Menu Context on macOS Picture 12

Step 3: Copy the file ' Info.plist ' and rename the file to another name, such as ' info-backup.plist ' to create a backup file.

Step 4 : Open the Info.plist file in a text editor like TextEdit.

Edit Menu Context on macOS Picture 13Edit Menu Context on macOS Picture 13

Step 5: Search for information by pressing the key combination Command + F , then enter " CFbundleTypeExtensions " into the box.

Edit Menu Context on macOS Picture 14Edit Menu Context on macOS Picture 14

Step 6: The above operation will display a lot of information. With complex applications like Photoshop, you will find related extensions. Locate the " . " containing the file type you want to prevent. For example, if you want to remove Photoshop from the Open With menu on PNG files, you search for "png" in CFbundleTypeExtensions.

Step 7 : Delete the related entry " . " . In this example, delete " png ".

Edit Menu Context on macOS Picture 15Edit Menu Context on macOS Picture 15

Step 8: Open Terminal and run the killall Finder command to apply the changes.

Although on macOS you don't have as much control over the context menu as on Windows, you can still take a few steps to edit the context menu on macOS. In addition, you can add more options to the Services menu, create thumbnails on Mac using the built-in Automator application on macOS, and create services.


When using Mac, users will need shortcuts to operate faster, save time doing other tasks, a list of keyboard shortcuts for Mac is available on the site Thuthuat.taimienphi.vn, in the list of shortcuts in Mac has many keys that you will feel familiar with if you are familiar with Windows.

4.5 ★ | 2 Vote