Mac: reloading document in Chrome or Firefox?

后端 未结 4 1881
野趣味
野趣味 2020-12-28 22:52

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         


        
4条回答
  •  长发绾君心
    2020-12-28 23:37

    Here's another way to do it in Safari without using JavaScript:

    tell application "Safari"
        tell its first document
            set its URL to (get its URL)
        end tell
    end tell
    

提交回复
热议问题