ãã©ã¦ã¶ããªãã¼ã
osascript -e 'tell app "Safari"' -e 'activate' -e 'do JavaScript "window.location.reload();" in first document' -e 'end tell'
System Eventsã使ãã®ã§ããã·ã¹ãã ç°å¢è¨å® -> ã¦ããã¼ãµã«ã¢ã¯ã»ã¹ãã®ãè£å©è£ ç½®ã«ã¢ã¯ã»ã¹ã§ããããã«ãããã«ãã§ãã¯ããããå¿ è¦ããã
osascript -e 'tell app "Firefox"' -e 'activate' -e 'end tell' -e 'tell application "System Events"' -e 'keystroke "r" using command down' -e 'end tell'
function! ReloadFirefox() :write !osascript -e 'tell app "Firefox"' -e 'activate' -e 'end tell' -e 'tell application "System Events"' -e 'keystroke "r" using command down' -e 'end tell' endfunction map <silent> ,rf :call ReloadFirefox()<CR>