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
网友评论