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.
This is the simple code i'm using to telnet into my IAD router.
set telnet to "telnet 10.7.6.17"
set username to "router1"
set password to "macrumors"
tell application "Terminal"
run
do script telnet
delay 1
do script username in window 1
delay 1
do script password in window 1
end tell
now I have to get to find out how to do "cntrl -t" to get to the terminal menus in this router.
OK i'm at a lost again. Do anyone know how to send "\x14" using applescript. Everytime I try sending it, Script Editor sends me a "Expected " but found unknow token" syntax error.
tell application "System Events"
tell application "Terminal" to activate
keystroke "t" using control down
end tell
Or something like that...
If you're looking for a signal like "^T" then I don't think one exists, and ctrl-t seems to do nothing in Terminal, and Command-t brings up the font selector.
EDIT: Control-t transposes characters when editing fields.