I've a simple Applescript script as following:
tell application "Terminal"
-- Get the current tab
set currentTab to selected tab of first window
-- Set the current tab's theme to Homebrew
set currentTab's current settings to settings set "Homebrew"
end tell
which works as expected when Terminal is run as a "normal" window, but fails with the following error when in Split View
terminal-color.scpt: execution error: Terminal got an error: AppleEvent handler failed. (-10000)
Any way to work around this error?