Last active
November 21, 2017 10:42
-
-
Save makevoid/a227f4e91c448babfa17a587986a7358 to your computer and use it in GitHub Desktop.
Run the latest command in terminal via Applescript
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
| # focus terminal | |
| tell application "Terminal" | |
| activate | |
| end tell | |
| # up arrow - enter (run last command) | |
| tell application "System Events" | |
| key code 126 | |
| key code 36 | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment