Skip to content

Instantly share code, notes, and snippets.

@nacho4d
Forked from jakemarsh/reset_simulator.applescript
Created February 28, 2013 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nacho4d/5054402 to your computer and use it in GitHub Desktop.
Save nacho4d/5054402 to your computer and use it in GitHub Desktop.
tell application "iPhone Simulator"
activate
end tell
tell application "System Events"
tell process "iPhone Simulator"
tell menu bar 1
tell menu bar item "iOS Simulator"
tell menu "iOS Simulator"
click menu item "Reset Content and Settings…"
end tell
end tell
end tell
tell window 1
click button "Reset"
end tell
end tell
end tell
-- Run at the command line or from a shell script using something like: 'osascript reset_simulator.applescript'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment