Last active
December 23, 2015 03:09
-
-
Save DerLobi/6571362 to your computer and use it in GitHub Desktop.
Don't you love it when Xcode shows you `The simulator can't be launched because it is already in use` when you want to run your tests, but your app is still running? At least with `Run` Xcode asks you if you want to stop the current process and you can check a checkmark to always do so. Open Automator, create a new Service, add a new "Execute Ap…
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
on run {input, parameters} | |
quit application "iPhone Simulator" | |
tell application "System Events" | |
tell process "Xcode" | |
tell menu bar 1 | |
tell menu bar item "Product" | |
tell menu "Product" | |
click menu item "Test" | |
end tell | |
end tell | |
end tell | |
end tell | |
end tell | |
end run |
Updated gist, now works when running from a different Xcode window.
end tell end tell end tell end tell end tell! Damn you Xcode :D
More like damn you AppleScript :D
💖
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So good!