Tuesday, December 14, 2010

Reload the browser with AppleScript

This post is obsoleted, here is the new simplified version.

AppleScript is a weird language but you still can do cool things with it.

tell application "Google Chrome"
activate
end tell

tell application "System Events"
tell process "Google Chrome"
keystroke "r" using {command down}
end tell
end tell


Please feel free to replace "Google Chrome" with your choice.

https://github.com/yikulju/MacGyver/blob/master/reload-browser.applescript

2 comments:

  1. Merkur 37C Safety Razor Review – Merkur 37C
    The Merkur 37c is an excellent short deccasino handled DE septcasino.com safety razor. It is more suitable for both heavy and 토토사이트 non-slip bsjeon.net hands and is therefore a great kadangpintar option for experienced

    ReplyDelete