Created
April 7, 2009 00:14
-
-
Save brysonian/91020 to your computer and use it in GitHub Desktop.
Random terminal tab
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
#!/bin/bash | |
# create a new tab in terminal using a random style setting | |
osascript -e 'tell application "Terminal"'\ | |
-e 'activate'\ | |
-e 'set s to some item of (the name of every settings set as list) as text'\ | |
-e 'end tell'\ | |
-e 'tell application "System Events"'\ | |
-e 'tell process "Terminal"'\ | |
-e 'tell menu bar 1'\ | |
-e 'tell menu bar item "Shell"'\ | |
-e 'tell menu "Shell"'\ | |
-e 'tell menu item "New Tab"'\ | |
-e 'tell menu "New Tab"'\ | |
-e 'click menu item s'\ | |
-e 'end tell'\ | |
-e 'end tell'\ | |
-e 'end tell'\ | |
-e 'end tell'\ | |
-e 'end tell'\ | |
-e 'end tell'\ | |
-e 'end tell'\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment