Skip to content

Instantly share code, notes, and snippets.

@brysonian
Created April 7, 2009 00:14
Show Gist options
  • Save brysonian/91020 to your computer and use it in GitHub Desktop.
Save brysonian/91020 to your computer and use it in GitHub Desktop.
Random terminal tab
#!/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