Question

I am writing Contextual Menu Plugins for Leopard OS and referring Writing Contextual Menu Plugins for OS X, part 1 article by Brent Simmons. My plugin is working fine.

enter image description here
Is there any way to move my test menu into main menu (above the Label)?

Was it helpful?

Solution

The short answer is "no".

The OS controls what gets displayed in that menu, so in order to change it around, you would need to call private methods, reimplement system-level functionality, and just in general do some Very Bad Things which would be unsafe, could break at a moment's notice, and possibly work differently between even dot releases of the same OS.

OTHER TIPS

Yes, it's called a system service, and was introduced in OS X 10.5. I know for a fact that many applications can do this, and Automator routines can be triggered this way because Automator itself is a system service. To see a service applicable for an application (i.e. Finder) go to the Application menu on the top bar (for lack of better name T_T), such as the Finder bolded text, and go down to Services > and it will show you all services that can be used in the app. If you need pointers on how to build this, just comment here.

EDIT: Yes, a SIMBL plugin is also considered a service, and on second read of your question, that's what you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top