Hello, I'm trying to write my first applescript, and i'm already at a loss. Can anyone give the syntax to do a simple telnet. I have a IP address that I want to telnet into, but keep getting a "expect a " not a ." error. Any help will be useful.
do shell script "telnet username@ip-address"
Eraserhead said:Wouldn't it be better to use SSH as it's secure? I don't have my Mac at the moment butshould work.Code:do shell script "telnet username@ip-address"
jaxstate said:Figured it out.
Do anyone, i mean anyone know the command for "Ctrl t" for applescript.HexMonkey said:Try "\\x14" instead. '\' is a special character so you need to escape it to use it normally.
tell application "System Events"
tell application "Terminal" to activate
keystroke "t" using control down
end tell