简体   繁体   English

禁用Finder中选择的多个文件的NSService上下文菜单

[英]Disable NSService context menu for multiple files selected in Finder

I use a NSService for my application: the user runs it from the Finder context menu. 我为应用程序使用NSService :用户从Finder上下文菜单中运行它。 I need to disable this NSService 's context menu button for multiple selections. 我需要禁用此NSService的上下文菜单按钮以进行多项选择。

Is this possible? 这可能吗?

It is not possible. 这不可能。 As the documentation says, possible values for the NSTextContent key are URL, Date, Address, Email, or FilePath - neither allows to specify any filter. 如文档所述,NSTextContent键的可能值为URL,Date,Address,Email或FilePath-均不允许指定任何过滤器。

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

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