Created
July 10, 2015 05:58
-
-
Save asev/aee4f939b56c693f77a8 to your computer and use it in GitHub Desktop.
Restores one of window arrangements on iTerm by AppleScript
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} | |
tell application "iTerm" to activate | |
tell application "System Events" | |
tell process "iTerm" | |
tell menu bar item "Window" of menu bar 1 | |
click | |
tell menu item "Restore Window Arrangement" of menu 1 | |
click | |
click menu item "TM" of menu 1 | |
end tell | |
end tell | |
perform action "AXRaise" of window 1 | |
tell menu bar item "Shell" of menu bar 1 | |
click menu item "Close" of menu 1 | |
end tell | |
end tell | |
end tell | |
return input | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment