Skip to content

Instantly share code, notes, and snippets.

@wearhere
Created February 20, 2012 04:16
Show Gist options
  • Save wearhere/1867816 to your computer and use it in GitHub Desktop.
Save wearhere/1867816 to your computer and use it in GitHub Desktop.
Clear Xcode Console from the Simulator
# Clears Xcode's console,
# then switches back to the iOS Simulator.
activate application "Xcode"
tell application "System Events"
tell process "Xcode"
click menu item "Clear Console" of menu 1 of menu item "Debug" of menu 1 of menu bar item "Product" of menu bar 1
end tell
end tell
activate application "iPhone Simulator"
@wearhere
Copy link
Author

GUI script gist #2, pretty straightforward. As with the last one, credit to UI Browser for discovering the menu item's path, and BetterTouchTool is your friend for running this.

@wearhere
Copy link
Author

At least with BetterTouchTool, opening this (saved as an application) via a keyboard shortcut will trigger a dialog asking you to run the script or quit. Boo. Opening this via a gesture runs it straight-away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment