Created
February 20, 2012 04:16
-
-
Save wearhere/1867816 to your computer and use it in GitHub Desktop.
Clear Xcode Console from the Simulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
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
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.