Deleting and Activating configs in RA
Deleting and Activating configs in RA
- Subject: Deleting and Activating configs in RA
- From: email@hidden
- Date: Sat, 30 Dec 2000 10:51:31 -0500
I can delete an RA config (even an active one) with:
set del_config to "->Erols"
try
tell application "Network Setup Scripting"
set the transaction_ID to ""
open database
set the transaction_ID to begin transaction
delete Remote Access configuration del_config
end transaction
close database
end tell
on error error_message number error_number
try
tell application "Network Setup Scripting"
if the transaction_ID is not "" then abort transaction
close database
end tell
on error
end try
end try
and i've changed the TCP/IP Config script that is in the Networking
mod to choose a config to delete from a list of configs (although
this will refuse to delete an active config).
What I'm trying to do is make an non-active config active then choose
a non-active one to delete.
I just can't seem to get the syntax right to force RA to make a
config active - although most of them will compile they dont work!!!
Any suggestions?
Jim
[Happy New Year!!]