7

Apparently with Snow Leopard, due to rewrite of Finder in Cocoa and removal of Contextual Menu Plugins, it is no longer trivial to do either badging nor contextual menus, however Dropbox seems to both add a contextual menu in the managed folder, and add status badges.

Is there an open source project that managed to solve this problem?

Ivan Vučica
  • 9,529
  • 9
  • 60
  • 111

3 Answers3

1

It's been years since this question was asked, but here's (almost) exactly what you were asking for: FLOSS that implements badging and contextual menus, but only for Lion and Mountain Lion (but I'm sure it wouldn't be too difficult to adapt it for Snow Leopard if still needed).

Liferay Nativity provides a scripting bundle that will swizzle the relevant Finder methods and a Java client for setting the icons and context menus. It also includes equivalent projects for Windows and Linux.

The project is open source under LGPL, so feel free to contribute any bug fixes or improvements!

dejuknow
  • 1,541
  • 2
  • 14
  • 30
0

I think Dropbox may have reverse engineered Finder if I recall their comments at PyCon. The full video is online and the slide is 16 minutes in.

Brian Lyttle
  • 14,558
  • 15
  • 68
  • 104
  • I've heard about that, but I'm asking about concrete example of an opensource project that implements the same or similar methods. – Ivan Vučica Mar 24 '11 at 12:06
0

you will need to inject code into the Finder process and override objective C methods in the Finder process. refer How to Write OS X Finder plugin post.

Community
  • 1
  • 1
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144