Is there a way to script Internet Connect to connect to a phone number/username/password OTHER than the information already in Internet Connect? This is a script I am working on but it isn’t working (and I can’t figure out why).
display dialog “What number should I dial?” default answer “” buttons {“Cancel”, “Next”} default button 2 with icon note
if button returned of result is “Cancel” then
error number -128
else if button returned of result is “Next” then
set telNumber to the result
display dialog "What is your username?" default answer "" buttons {"Cancel", "Next"} default button 2 with icon note
if button returned of result is "Cancel" then
error number -128
else if button returned of result is "Next" then
set usrSet to the result
display dialog "What is your password?" default answer "" buttons {"Cancel", "Next"} default button 2 with icon note
if button returned of result is "Cancel" then error number -128
else if button returned of result is "Next" then
set usrPass to the result
end if
tell application "Internet Connect"
connect configuration "internal modem" to telephone number telNumber as user usrSet with password usrPass
end tell
end if
Also, is it possible to write a script to make the modem dial a number (but do nothing more than dial) so I can then pick up the phone for a voice call?