Created
November 29, 2017 10:37
-
-
Save andrewodri/920f64277d61a9f37d928d7d2463a8eb to your computer and use it in GitHub Desktop.
JXA Change Tab Background
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
let terminal = Application("Terminal") | |
terminal.includeStandardAdditions = true | |
let defaultBackground = terminal.defaultSettings.backgroundColor | |
let blueBackground = defaultBackground | |
terminal.windows[0].selectedTab.currentSettings.backgroundColor = blueBackground | |
terminal.displayDialog(terminal.windows[0].selectedTab.history.toString()) | |
console.log( | |
// terminal.windows[0].frontmost | |
// terminal.windows[0].selectedTab.currentSettings.name.toString() | |
// terminal.windows.find(window => window.frontmost).selectedTab.contents | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment