How do I add custom menu items to the context menu for files in Finder?
Unfortunately, most of the information out on the Internet and on Stack Overflow doesn't work in 10.6 or are too limited. Automator, for example, doesn't allow you to create items dynamically or create submenus.
I know it's still possible to do this sort of thing because Dropbox and FolderGlance both do similar things. Does anyone know how they implemented this?
Thanks.
The primary method for adding and removing context menu items from macOS's context menu is through services. The services appear under the “Services” dropdown in the right-click menu at the bottom of the menu. macOS offers a GUI-based method here for adding and removing context menu 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.
For what it's worth, Dropbox now uses mach_star for code injection. Obviously this is a fragile solution. If you look through their version history, many of their updates are to fix finder integration.
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