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++ - Convert big endian to little endian when reading from a binary file -

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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -