Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add custom menu items to the Finder context menu

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.

like image 204
Michael Melanson Avatar asked Jun 23 '11 23:06

Michael Melanson


People also ask

How do I edit the context menu on a Mac?

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.

Where is the context menu on a Mac?

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.


1 Answers

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.

like image 135
livingtech Avatar answered Sep 23 '22 00:09

livingtech