Skip to content

Instantly share code, notes, and snippets.

@mkgl
mkgl / changeTerminalColor.scpt
Last active November 11, 2015 23:09
Changing Terminal colors with style (Applescript)
global favThemes
set favThemes to {"Basic", "Pro Blue", "Pro Mint", "Pro Plum", "Pro Red", "Pro Gold", "Pro"}
tell application "Terminal"
# Get current settings
set theme to the name of the current settings of the selected tab of the front window
set i to my index_of(theme)
# Find next settings
set next to (i mod (count of favThemes) + 1)