osx - Mac: reloading document in Chrome or Firefox? -


how can tell chrome or firefox reload document in top window? here's i'm using safari:

osascript -e '     tell application "safari"       activate       javascript "history.go(0)" in document 1     end tell ' 

i not think firefox or chrome have special applescript support, can send keystrokes (cmd-r) refresh page:

tell application "firefox"     activate     tell application "system events" keystroke "r" using command down end tell 

Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -