Mac OSx: Entering an Object in the Finder Context Menu

In 10.5, we have built-in support for context menu plugins. This allows us to add items at runtime and add different menus for different types of files.

But with 10.6 and higher, we have context menu services that do not allow subMenus, and do not help if we want to add different elements to the context menu at runtime based on the type of location file.

This led me to inject the code into the Finder (e.g. DropBox), but I'm a little new to this particular task, but I'm ready to do it. Can anyone give me a starting point.

Thanks pending.

+4
source share
2 answers

Prior to OS X 10.9.x, only the injection code for the Finder process via mach_inject was the solution (and even Dropbox did this). However, from 10.10 there are Finder plugins that can customize context menus, add buttons to the toolbar, and overlay over file icons.

Update: since OS X 10.11 code injection will not work at all due to system integrity protection. So only the Finder Sync plugin.

+2
source

You can start with mach_star . mach_star is an open source software package for suppressing, replacing and / or expanding the functionality of Mac OS X at a very low level. Its main components are mach_override (replacing and / or extending existing functions at runtime) and mach_inject (dynamically loading your code into a running process).

+5
source

Source: https://habr.com/ru/post/1379042/


All Articles