如何向查找程序添加右键菜单

时间:2022-10-05 07:34:28

how can i add a custom view to the right click menu of every file in os x finder?

如何在os x finder中的每个文件的右键菜单中添加自定义视图?

e.g. i want to display the image if it is an image type and do some custom action etc.

例如我想显示图像,如果它是一个图像类型,并做一些自定义动作等。

is this possible with c or objective-c? if yes how? (without using any available tool)

c或Objective-c可能吗?如果有,怎么样? (不使用任何可用的工具)

1 个解决方案

#1


7  

You need to write a Menu Manager plugin based on CFPlugin. Unfortunately, this involves some really dated Carbon stuff. There is a tutorial from a few years ago at mactech

您需要编写基于CFPlugin的Menu Manager插件。不幸的是,这涉及到一些真正过时的碳素。几年前在mactech上有一个教程

Note that this stuff may be obsolete with Snow Leopard, though whatever they come up with is probably going to be much easier to deal with than Menu Manager/CFPlugin cruft.

请注意,使用Snow Leopard时,这些东西可能已经过时了,尽管它们提供的内容可能比菜单管理器/ CFPlugin cruft更容易处理。

#1


7  

You need to write a Menu Manager plugin based on CFPlugin. Unfortunately, this involves some really dated Carbon stuff. There is a tutorial from a few years ago at mactech

您需要编写基于CFPlugin的Menu Manager插件。不幸的是,这涉及到一些真正过时的碳素。几年前在mactech上有一个教程

Note that this stuff may be obsolete with Snow Leopard, though whatever they come up with is probably going to be much easier to deal with than Menu Manager/CFPlugin cruft.

请注意,使用Snow Leopard时,这些东西可能已经过时了,尽管它们提供的内容可能比菜单管理器/ CFPlugin cruft更容易处理。