Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@benclark
Created July 6, 2012 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benclark/3059850 to your computer and use it in GitHub Desktop.
Save benclark/3059850 to your computer and use it in GitHub Desktop.
Switch Terminal settings of current window
on run argv
set mySettingName to item 1 of argv
tell application "Terminal"
set myWindow to front window
set myTab to selected tab of myWindow
try
set current settings of myTab to settings set mySettingName
end try
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment