Created
December 6, 2012 15:30
-
-
Save dawsontoth/4225350 to your computer and use it in GitHub Desktop.
osascript to focus terminal, send ctrl+c, then up, then enter.
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
tell application "System Events" | |
tell application "Terminal" to activate | |
keystroke "c" using {control down} | |
key code 126 | |
key code 52 | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!