[英]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.