T
thinkart23
Neues Mitglied
Thread Starter
- Dabei seit
- 08.06.2012
- Beiträge
- 13
- Reaktionspunkte
- 0
Hallo zusammen,
ich bin neu hier und auch beim schreiben von Scripts.
Ich bin grad bei einem Script das eine Vpn Verbindung startet,dann "Programm XY" startet.(bis dahin habe ich es)
Wie wäre der Verlauf im Script wenn:
- Programm XY wird geschlossen
- VPN Verbindung trennen
Der Script lautet bis lang:
tell application "System Events"
tell current location of network preferences
set myConnection to the service "VPN"
if myConnection is not null then
if current configuration of myConnection is not connected then
connect myConnection
end if
end if
end tell
tell application "Skype" to activate
end tell
wer kann mir einen Tipp bzw weiter helfen?
ich bin neu hier und auch beim schreiben von Scripts.
Ich bin grad bei einem Script das eine Vpn Verbindung startet,dann "Programm XY" startet.(bis dahin habe ich es)
Wie wäre der Verlauf im Script wenn:
- Programm XY wird geschlossen
- VPN Verbindung trennen
Der Script lautet bis lang:
tell application "System Events"
tell current location of network preferences
set myConnection to the service "VPN"
if myConnection is not null then
if current configuration of myConnection is not connected then
connect myConnection
end if
end if
end tell
tell application "Skype" to activate
end tell
wer kann mir einen Tipp bzw weiter helfen?