Skip to content

Instantly share code, notes, and snippets.

@danstepanov
Created May 8, 2016 03:48
Show Gist options
  • Select an option

  • Save danstepanov/afc78ab107ed581f9cf13997978c40a6 to your computer and use it in GitHub Desktop.

Select an option

Save danstepanov/afc78ab107ed581f9cf13997978c40a6 to your computer and use it in GitHub Desktop.

Revisions

  1. danstepanov created this gist May 8, 2016.
    18 changes: 18 additions & 0 deletions reset-simulator.applescript
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    tell application "Simulator"
    activate
    end tell

    tell application "System Events"
    tell process "Simulator"
    tell menu bar 1
    tell menu bar item "Simulator"
    tell menu "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