AppleScript自动连接SSH服务器
2017-09-15 本文已影响9人
十一岁的加重
tell application "Terminal"
do script "ssh ssh服务器地址"
delay 0.8
tell application "System Events"
tell process "Terminal"
set frontmost to true
delay 1
keystroke "ssh服务器密码"
keystroke return
end tell
end tell
end tell