Customize Contextual Menus with AutomatorStart Automator from your Applications folder or Launchpad. Choose Service for your document. At the right-hand panel, select "files or folders" in "Service receives selected". Then, at the left-hand panel, select Files & Folders > Rename Finder Items.
Control-click on a Mac is similar to right-click on a Windows computer—it's how you open shortcut (or contextual) menus on a Mac. Control-click: Press and hold the Control key while you click an item. For example, Control-click an icon, a window, the toolbar, the desktop, or another item.
Right-click (or select and hold) on a file or folder to open the context menu.
I am implementing a contextual service for mac OS. When you select a text in an application that support services, a new subitem is added to a services menu. I followed Services Implementation Guide.
Now this works as intended. Now how do I move the item from Services menu to be directly in the contextual menu (so that the user does not have to navigate through Services and can directly use my service)? Is that even possible?
EDIT: After some more research I am still not any better. E.g., this SO answer claims that it is not possible to add a contextual menu item directly in the menu, only through services. On the other hand, this SO answer claims that it is possible and provides some links on further resources - however, the sample code that is linked in it is not on the Apple site anymore, and the tutorial linked seems to be outdated as well (all its resources are pointing to non-existent pages).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With