Skip to content

Instantly share code, notes, and snippets.

@tlync
Created March 7, 2012 10:54
Show Gist options
  • Save tlync/1992497 to your computer and use it in GitHub Desktop.
Save tlync/1992497 to your computer and use it in GitHub Desktop.
Reload a web page on iPhone Simulator (elisp)
(defun web-reload-iphonesimulator ()
"Reload a page on iPhone Simulator. Run process associated to the *Messages* buffer"
(interactive)
(start-process-shell-command
"iphonesimulator-process"
"*Messages*"
"osascript -e 'tell application \"System Events\"' -e 'tell process \"iPhone Simulator\"' -e 'click button \"Reload\" of window 1' -e 'end tell' -e 'end tell'"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment