从Firefox执行本地文件最简单的方法? [英] Easiest way to execute local file from Firefox?

查看:314
本文介绍了从Firefox执行本地文件最简单的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序。
我想扩展我的错误消息(和他们的回溯),以便我可以点击提到的文件,并让它在我的PHP IDE中自动打开。



我想使这个易于激活的功能,以便任何人在Web应用程序上工作,可以很容易地映射错误信息指向他们的本地站点的副本,并打开他们的IDE。



开发一个自定义FF扩展的最简单的方法就是在Windows上的Firefox上点击执行一个本地命令(一个调用IDE的批处理文件) )?
我寻找扩展,但没有运气。也许使用另一个扩展名,如Firebug或Greasemonkey?

安全性不是问题,因为这应该只在开发人员的工作站上工作,我可以更改我的本地Firefox的设置。

解决方案

你可以添加一个新的协议(比如edit://)到windows( http://msdn.microsoft.com/en-us/library/aa767914(VS。 85).aspx ),然后编写一个小的处理程序,从edit://url中选择一个文件名,并将该文件传递给编辑器。通过这种方式,我教导了Windows了解txmt链接( http://blog.macromates .com / 2007 / the-textmate-url-scheme / )。

I am developing a web application. I would like to extend my error messages (and their backtraces) so that I can click on the mentioned file, and have it opened automatically in my PHP IDE.

I would like to make this a easy-to-activate feature so that whoever works on the web application, can easily map the error message to point to their local copy of the site, and open their IDE.

What - short of developing a custom FF extension - is the simplest way you can think of to execute a local command (a batch file that calls the IDE) on click in Firefox on Windows(7)? I have looked for extensions but had no luck. Maybe using another extension like Firebug or Greasemonkey?

Security is not an issue, as this is supposed to work on the developer's workstation only and I can change my local Firefox's settings.

解决方案

You can add a new protocol (like "edit://") to windows (http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx) and write a small handler program that picks a filename from the "edit://" url and passes that file to the editor. This way i taught windows to understand txmt links (http://blog.macromates.com/2007/the-textmate-url-scheme/) in the way my mac does.

这篇关于从Firefox执行本地文件最简单的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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