苹果:在Chrome或Firefox重装文件? [英] Mac: reloading document in Chrome or Firefox?
本文介绍了苹果:在Chrome或Firefox重装文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能告诉Chrome或Firefox重新加载文档的最顶层窗口?下面是我用什么Safari浏览器:
osascript -e'
告诉应用程序野生动物园
启用
做的JavaScripthistory.go(0),在文献1
告诉结束
解决方案
我不认为Firefox或Chrome有特殊AppleScript的支持,但是你可以发送击键(Cmd的-R)刷新页面:
告诉应用程序火狐
启用
告诉应用程序系统事件到击键R使用命令下来
告诉结束
How can I tell Chrome or Firefox to reload the document in the top window? Here's what I'm using for Safari:
osascript -e '
tell application "Safari"
activate
do JavaScript "history.go(0)" in document 1
end tell
'
解决方案
I do not think Firefox or Chrome have special Applescript support, but you can send the keystrokes (Cmd-R) to refresh the page:
tell application "Firefox"
activate
tell application "System Events" to keystroke "r" using command down
end tell
这篇关于苹果:在Chrome或Firefox重装文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文