Firefox或Chrome中的Lauch外部程序 [英] Lauch external program in firefox or chrome

查看:114
本文介绍了Firefox或Chrome中的Lauch外部程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Intranet中有一个自定义Web应用程序,该应用程序允许用户以更适合我们组织的方式浏览和搜索我们的共享文件系统.与Windows Explorer/Mac Finder相比.但是,例如,当用户单击指向单词文档的链接时,浏览器将下载该文档,然后将其打开.我正在尝试提供一种更好的方法,即直接从每个用户在其自己的计算机中映射的共享文件夹中打开文件.这样可以使处理速度更快,并且不会污染浏览器的下载文件夹.

We have a custom web app in our intranet that allow users to browse and search our shared file system in a way more appropriate for our organization. as compared to windows explorer/mac finder. However, when the users click on, for example, a link pointing to a word document the document is downloaded by the browser and then opened. I am trying to provide a better way, namely that the file is opened directly from the shared folder that each user has mapped in his own computer. This will make things faster and will not pollute the browser download folder.

我打算创建一个chrome或firefox扩展,以识别附加到链接的某些CSS类,将链接重新映射到共享文件系统,并启动一个外部进程.任何想法如何实现这一目标?有更好的解决方案吗?

I was planning to create a chrome or firefox extension that recognizes certain css class attached to a link, remaps the link to the shared file system and and launch an external process. Any idea how to achieve this? Is there a better solution?

推荐答案

如果您希望URL由自定义程序处理,则可以使用自定义协议创建特殊URL(例如:MyApp://而不是http://),然后注册该协议通过自定义程序打开.这些链接仅在安装了您的程序并且已注册协议以供您的应用程序处理的计算机上起作用.

If you want the URL to be handled by a custom program you could create special URLs using a custom Protocol (ex: MyApp:// instead of http://) and then register that protocol to be opened via a custom program. The links would only work on computers that have your program installed and where the protocol has been registered to be handled by your application.

这篇关于Firefox或Chrome中的Lauch外部程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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