MacOSX的或AppleScript的:获取从Firefox当前URL [英] MacOSX or AppleScript: get current URL from Firefox

查看:303
本文介绍了MacOSX的或AppleScript的:获取从Firefox当前URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能从Firefox当前URL(3或4)?所有的解决方案,我发现到目前为止,要么不工作(如那些具有类卷曲),或者是丑陋的黑客这是对我无解(发送键presses复制网址到剪贴板)。

How can I get the current URL from Firefox (3 or 4)? All solutions I have found so far either don't work (e.g. those with "class curl") or are ugly hacks which are no solution for me (sending key presses to copy the URL to clipboard).

推荐答案

好吧,我有一个解决方案现在:我读出来的Firefox本届会议商店。这工作,但它始终是长达10秒过期。

Well, I have one solution now: I am reading it out of the current session store of Firefox. This works but it is always up to 10 seconds out-of-date.

下面是code:
<一href=\"https://github.com/albertz/foreground_app_info/blob/master/mac/app-scripts/url%20of%20Firefox.py\" rel=\"nofollow\">https://github.com/albertz/foreground_app_info/blob/master/mac/app-scripts/url%20of%20Firefox.py

这篇关于MacOSX的或AppleScript的:获取从Firefox当前URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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