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
#!/bin/bash | |
osascript <<EOD | |
set start_time to do shell script "ruby -e 'print Time.now.to_i'" | |
repeat while true | |
tell application "System Events" | |
set activeApp to name of application processes whose frontmost is true | |
if activeApp is not "Xcode" then | |
tell process "Xcode" | |
set frontmost to true |