Skip to content

Instantly share code, notes, and snippets.

@jkubicek
Created May 28, 2014 17:12
Show Gist options
  • Save jkubicek/9cd740a269192e3694be to your computer and use it in GitHub Desktop.
Save jkubicek/9cd740a269192e3694be to your computer and use it in GitHub Desktop.
tell application "iPhone Simulator"
activate
end tell
tell application "System Events"
tell process "iPhone Simulator"
click menu item "Reset Content and Settings…" of menu "iOS Simulator" of menu bar 1
delay 0.25
key code 76 -- The return button
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment