Search code examples
cocoamacosreverse-engineeringfinder

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.


Solution

  • I downloaded FolderGlance and it appears to use an osax (Scripting Addition) bundle to inject code into the Finder process. This is definitely fragile and unsupported.

    As far as I am aware the only legit way to add items to the Finder contextual menu is to create a Service, but that doesn't solve your problem.