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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -