Мне нужен яблочный скрипт для запуска команды tabset test
, чтобы изменить имя текущей вкладки на iTerm
.
-- Launch iTerm and log into multiple servers using SSH
tell application "iTerm"
activate
create window with default profile
set newWindow to (create window with default profile)
set Servers to paragraphs of (do shell script "/bin/cat $HOME/serverlist")
repeat with nextLine in Servers
if length of nextLine is greater than 0 then
tell current window
create tab with default profile
tell current session of newWindow
do shell script "export PATH='/usr/local/bin:$PATH'; tabset test "
end tell
end tell
end if
end repeat
tell first tab of current window
close
end tell
tell second window
close
end tell
end tell
Проблема в tabset test
не работает, и нет никаких сообщение об ошибке.
Команда tabset
может быть установлена с помощью npm install -g iterm2-tab-set