Created
May 15, 2019 21:56
-
-
Save stevelandeyasana/6091ddfff4607b86884f38594b733eb5 to your computer and use it in GitHub Desktop.
AppleScript to toggle between Xcode and Simulator
This file contains hidden or 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 alfred_script(q) | |
tell application "System Events" to set FrontAppName to name of first process where frontmost is true | |
if FrontAppName is "Xcode" then | |
tell app "Simulator" to activate | |
else | |
tell app "Xcode" to activate | |
end if | |
end alfred_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment