|
|
|
|
|
by jimwise
5554 days ago
|
|
Interesting bug in this example: Since the AppleScript instructs the terminal to change _the current session_'s theme, if ssh exits while you're in another tab (say due to a disconnect), the tab which is currently frontmost will have its theme changed to 'Solarized Dark', while the tab you had run ssh in will stay as 'Solarized Light'. Of course, this won't show up in testing -- and will be rather surprising when it does show up. :-) |
|
Or consider this. It changes the settings of the first tab of the first window to the first settings set. It works great:
However, a trivial change that in any sane implementation would be exactly equivalent fails: Changing it slightly makes it work: AppleScript is the most frustrating language I've ever tried to work with because of things like this.