I am work on creating a AppleScript to have a user enter there user name and there password and then be able to login to telnet.
This is what I have so far. How to I get the user name to be passed to terminal?
Tell application “System Events”
try
tell application “System Events” to display dialog “Please enter your User Name” default answer “User Name”
set the_result to the result
set shortName to text returned of the_result
tell application "System Events" to display dialog "Please input New Password" default answer "password"
set the_result to the result
set pass to text returned of the_result
end try
end tell
set serverAddress to “server”
tell application “Terminal”
activate
do script "telnet " & serverAddress
do script "& shortName "
end tell