Scripting Internet Connect
Scripting Internet Connect
- Subject: Scripting Internet Connect
- From: "Tom Bridge" <email@hidden>
- Date: Mon, 01 Mar 2004 17:19:58 -0500
I've run into some trouble trying to use AppleScript with Internet
Connect. I've got a script that will pull information from FileMaker and
use it in Internet Connect to actually dial the modem. It works great in
Jaguar, but when we try to use it in Panther, it dies. Here's the script
snippet from the original Jaguar script:
-- This code dials the phone
internetConnectDialPhone(pTInternetConnectDialConfigurationName,
tPhoneNumber)
displayDialog("Please wait...", {"OK"}, 1, 5)
-- This code lets the user know that the phone is dialing
set tMsg to "Dialing phone number: " & tPhoneNumber
displayDialog(tMsg, {"OK"}, 1, 5)
on internetConnectDialPhone(tNameConfiguration, tPhoneNumber)
ignoring application responses
tell application "Internet Connect" to connect configuration
tNameConfiguration to telephone number tPhoneNumber
end ignoring
end internetConnectDialPhone
The result in Panther of this script is that it will open Internet
Connect, and attempt a connection to whatever number was already present
in the default config. If there's no number in the default config, it
returns an error that the needed field was empty.
I did some digging around and came up with the problem that Panther might
need more information. So I tried this:
on internetConnectDialPhone(tNameConfiguration, tPhoneNumber)
ignoring application responses
tell application "Internet Connect" to connect configuration
tNameConfiguration to telephone number tPhoneNumber as user "username"
with password "password"
end ignoring
end internetConnectDialPhone
Where username and password are of course swapped with the real user's
password and username. This also fails.
What am I doing wrong?
TIA
Tom
Tom Bridge
Computer Support Specialist
National Center on Education and the Economy
202.783.3668x157
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.