简体   繁体   English

将我的应用程序添加到Finder的上下文菜单中?

[英]Adding my application to the Finder's context menu?

I have an application that I'm developing that deals with files of any type. 我有一个我正在开发的应用程序处理任何类型的文件。 I would like the user to be able to right click on any type of file in the Finder and have my menu option show up. 我希望用户能够在Finder中右键单击任何类型的文件 ,并显示我的菜单选项。 I understand you have to add your application as a service to do this, however, whatever I put in the service settings in my Info.plist doesn't do the trick. 我知道你必须将你的应用程序添加为服务来执行此操作,但是,无论我在Info.plist中的服务设置中放置什么都不行。 I do register my application as a service with OS X, and I know it works because under service preferences my application's service shows up. 我将我的应用程序注册为OS X服务,我知道它有效,因为在服务首选项下我的应用程序的服务出现了。 However, I don't think I'm passing it the right type of parameters, because I can't activate my service by right-clicking on a file. 但是,我认为我没有传递正确类型的参数,因为我无法通过右键单击文件来激活我的服务。

Any help would be deeply appreciated. 任何帮助将深表感谢。

Did you take a look at the Apple documentation ? 您是否看过Apple文档

Also, this might be useful: Writing a Snow Leopard Service for Finder.app 此外,这可能很有用: 为Finder.app编写Snow Leopard服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM