Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
Autor |
Nachricht |
dachshund •->

Anmeldedatum: 29.11.2000 Beiträge: 11
|
Verfasst am: 30.11.2000 - 00:08 Titel: EW ein/aus speicher TCP/IP Config /AppleScript |
|
|
Ich suche dringend eine möglichkeit meine tcp einstellungen per applescript umzustellen zwischen zwei configs...
ausserdem eine womit ich das kontorllfeld speicher und erweiterung ein aus jeweils auf was anderes umstellen kann...
helft mir...! |
|
Nach oben |
|
 |
TNBC •->

Anmeldedatum: 22.11.2000 Beiträge: 11 Wohnort: N¸rnberg
|
Verfasst am: 30.11.2000 - 00:10 Titel: EW ein/aus speicher TCP/IP Config /AppleScript |
|
|
TCP/IP umschalten geht z.B. so:
try
set the transaction_ID to ""
tell application "Network Setup Scripting"
open database
set the transaction_ID to begin transaction
set active of TCPIP v4 configuration the "Set1" to true
end transaction
close database
end tell
on error
try
tell application "Network Setup Scripting"
if the transaction_ID is not "" then abort transaction
close database
end tell
end try
end try
Vorher muß man natürlich die entsprechenden Sets im TCP/IP mit den entsprechenden Namen angelegt haben.
MFG, TNBC |
|
Nach oben |
|
 |
|