简体   繁体   English

通过网络浏览器在Mac的文本编辑中打开HTML文件

[英]Open HTML file in Mac's Text Edit from a web browser

I'd like to use Javascript (or perhaps some more suitable script?) to open an HTML file in Text Edit (I'm on a mac) 我想使用Javascript(或也许是一些更合适的脚本?)在Text Edit中打开HTML文件(我在Mac上)

I have a local web page made using Text Edit with different tabs that link to more Text Edit files on the page. 我有一个使用文本编辑制作的本地网页,带有不同的标签,这些标签链接到页面上的更多文本编辑文件。

I'd like some way of quickly opening the tabs in Text Edit from my browser, then I could edit the HTML files easily in Text Edit and when I refresh the browser it will display my newly edited tab. 我想以某种方式从浏览器中快速打开“文本编辑”中的选项卡,然后可以在“文本编辑”中轻松编辑HTML文件,当刷新浏览器时,它将显示新编辑的选项卡。

Pretty sure this should be simple but I'm a total beginner at Javascript and apart from going through the W3Schools tutorials, I have no knowledge of JScript per se. 可以肯定的是,这应该很简单,但是我是Java语言的初学者,除了遍历W3Schools教程之外,我本身并不了解JScript。

Thank you for any help with this in advance. 谢谢您对此事的任何帮助。

I don't think TextEdit has a web listener of that sort, like Twitter for Mac has for Safari. 我不认为TextEdit具有像Web上的Twitter和Safari那样的网络侦听器。 I think you would need AppleScript to be able to do this, and that would only be on your local machine. 我认为您将需要AppleScript才能做到这一点,而这只能在您的本地计算机上进行。

...wat? ...没? Just get a good text editor. 只要获得一个好的文本编辑器即可。 I recommend Sublime Text 2 or Espresso. 我推荐Sublime Text 2或Espresso。

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

相关问题 如何从Sublime Text Edit 2到网络浏览器运行Javascript程序? - How to run a Javascript program from sublime text edit 2 to a web browser? 文本区域中的html->从数据库-> Java->浏览器,编辑并返回 - html in text area -> from db -> java -> browser, edit and back 在浏览器中打开HTML文件的代码 - Code to open HTML file in browser 登录后如何使用python在Web浏览器中打开html文件? - How to open an html file in web browser using python after I have logged in? 如何在 html 文件中打开不同的链接作为 Web 浏览器中的新选项卡 - How to open different links inside a html file as new tabs in the web browser 如何使用github API从网络浏览器编辑github文件? - How do I edit github file from web-browser with github API? Web浏览器正在向我的HTML链接添加文本 - Web Browser is Adding Text to my HTML Link 如何在单独的浏览器选项卡中从Web应用程序打开第三方HTML项目 - How to open a third party HTML project from a web application ,in a separate browser tab 在浏览器上打开html时Javascript文件不起作用 - Javascript file not working when open html on browser 是否可以从浏览器中编辑计算机上的文件? - Is it possible to edit a file on computer from within a browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM