Ergebnis 1 bis 1 von 1
- 23.02.2008, 14:05 #1Boskop
Themenstarter
- Registriert
- 02.2008
- Beiträge
- 212
VPN Automatischer Connect
Hallo zusammen, habe folgendes AppleScript hier imForum gefunden, um automatisch eine VPN (PPTP) Verbindung aufzubauen:
Leider kommt im Skripteditor beim Abspeichern immer die Fehlermeldung "Zeilenende erwartet, Identifer "configuration" gefunden."Code:set NetName to do shell script ("system_profiler SPAirPortDataType |grep -e " & quoted form of "Current Wireless Network:" & " |awk '{print $4,$5,$6,$7}'") as string if NetName contains "AnasHome" then -- at home, no pptp connection else if NetName contains "Uni-Bremen" then -- on campus, start pptp-connection tell application "Internet Connect" activate connect configuration "VPN (PPTP)" quit end tell else -- somewhere else, do nothing end if
ich habe absolut keine Ahnung von AppleScript und wäre sehr für eure Hilfe dankbar. Nutze Leopard.
EDIT:
Folgendes Skript geht:
Problem damit gelöst...Code:tell application "System Events" tell current location of network preferences set VPNservice to service "VPN (L2TP) 2" -- name of the VPN service if exists VPNservice then connect VPNservice end tell end tell
Ähnliche Themen
-
VPN Auto-Connect
Von tesla2k2 im Forum AppleScriptAntworten: 16Letzter Beitrag: 24.10.2011, 17:55 -
PLAYSTATION connect 2 airport
Von KEIKO im Forum Airport & WLANAntworten: 1Letzter Beitrag: 31.12.2007, 14:27 -
TI Connect (Texas Instruments) für mac OS X
Von Mr.Fladen im Forum Andere SoftwareAntworten: 3Letzter Beitrag: 17.12.2007, 16:30 -
Windows Media Connect für MAC?
Von tjg im Forum OS XAntworten: 1Letzter Beitrag: 05.01.2007, 16:31 -
Bluetooth Auto Connect
Von plaetzchen im Forum OS XAntworten: 2Letzter Beitrag: 09.01.2006, 14:39


Zitieren