Created
July 6, 2012 12:21
-
-
Save benclark/3059850 to your computer and use it in GitHub Desktop.
Switch Terminal settings of current window
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 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