将自定义菜单项添加到Finder上下文菜单 [英] Add custom menu items to the Finder context menu

查看:87
本文介绍了将自定义菜单项添加到Finder上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Finder的文件的上下文菜单中添加自定义菜单项?

How do I add custom menu items to the context menu for files in Finder?

不幸的是,Internet上和Stack Overflow上的大多数信息在10.6中不起作用或限制太小.例如,Automator不允许您动态创建项目或创建子菜单.

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.

我知道仍然可以做这种事情,因为Dropbox和FolderGlance都做类似的事情.有人知道他们是如何实现的吗?

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?

谢谢.

推荐答案

我下载了FolderGlance,它似乎使用osax(脚本添加)捆绑包将代码注入Finder进程中.这绝对是脆弱且不受支持的.

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.

据我所知,向Finder上下文菜单添加项目的唯一合法方法是创建服务,但这并不能解决您的问题.

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.

这篇关于将自定义菜单项添加到Finder上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆