AppleScript - 在 Firefox 上执行 JavaScript [英] AppleScript - JavaScript execution on Firefox
本文介绍了AppleScript - 在 Firefox 上执行 JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Safari 和 Chrome 可以通过 AppleScript 执行 JavaScript
Safari and Chrome can execute JavaScript via AppleScript
Safari:
tell application "Safari"
open location "http://example.com"
activate
do JavaScript "alert('example');" in current tab of first window
end tell
Chrome:
tell application "Google Chrome"
open location "http://example.com"
activate
execute front window's active tab javascript "alert('example');"
end tell
有没有办法在 Firefox 中做到这一点?
注意:Opera 的相同问题在这里:AppleScript - JavaScript 在 Opera 上的执行
我想过一起问他们,但我决定问两个不同的问题,以便能够分别接受答案.
推荐答案
在 Firefox 中使用 AppleScript 运行 javascript 尚未实现.错误故事.
它处于 New 状态,没有受让人.你可以接受:)
Running javascript using AppleScript in Firefox has not been implemented. Bug Story.
It is in New state and with no assignees. You could take that up :)
这篇关于AppleScript - 在 Firefox 上执行 JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文