thinkart23
Neues Mitglied
Thread Starter
- Dabei seit
- 08.06.2012
- Beiträge
- 13
- Reaktionspunkte
- 0
Hallo,
anbei ein kleiner Script der wenn man ihn unter Startobjekte z.B. den VPN,Proxy(JAP) und 2 weitere Apps(Firewall,Antivirus)startet.
Ein kleinen Sprechdialog habe ich auch mit rein gepackt.
Hat jemand ne Idee was man noch dran verbessern könnte?
Ach bis jetzt schließt sich nicht immer das Fenster von "JAP".
Arbeite noch an einer anderen Version wo der Finder gesperrt wird mit Benutzer abfrage.
_______________________________________________________________________________________________
delay 3
do shell script "scselect Automatic"
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
say "Danke für die aktevierung von mir, die sicherheitsprogramme werden gestartet ,biite warten " using "anna"
tell application "ESET"
activate
tell application "System Events"
activate application "ESET"
delay 3
ignoring application responses
set the visible of process "ESET" to false
end ignoring
end tell
end tell
delay 3
tell application " Virus Scanner "
activate
tell application "System Events"
activate application "Virus Scanner"
delay 5
tell application "JAP"
activate
tell application "System Events"
activate application "JAP"
delay 10
ignoring application responses
set the visible of process "JAP" to false
end ignoring
end tell
end tell
delay 5
say "danke fürs warten,Ich bin nun sicher, du kannst mich jetzt benutzen" using "anna"
display dialog "Start Sicherheit 1.1" buttons {"OK"} default button 1
end if
end tell
end tell
anbei ein kleiner Script der wenn man ihn unter Startobjekte z.B. den VPN,Proxy(JAP) und 2 weitere Apps(Firewall,Antivirus)startet.
Ein kleinen Sprechdialog habe ich auch mit rein gepackt.
Hat jemand ne Idee was man noch dran verbessern könnte?
Ach bis jetzt schließt sich nicht immer das Fenster von "JAP".
Arbeite noch an einer anderen Version wo der Finder gesperrt wird mit Benutzer abfrage.
_______________________________________________________________________________________________
delay 3
do shell script "scselect Automatic"
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
say "Danke für die aktevierung von mir, die sicherheitsprogramme werden gestartet ,biite warten " using "anna"
tell application "ESET"
activate
tell application "System Events"
activate application "ESET"
delay 3
ignoring application responses
set the visible of process "ESET" to false
end ignoring
end tell
end tell
delay 3
tell application " Virus Scanner "
activate
tell application "System Events"
activate application "Virus Scanner"
delay 5
tell application "JAP"
activate
tell application "System Events"
activate application "JAP"
delay 10
ignoring application responses
set the visible of process "JAP" to false
end ignoring
end tell
end tell
delay 5
say "danke fürs warten,Ich bin nun sicher, du kannst mich jetzt benutzen" using "anna"
display dialog "Start Sicherheit 1.1" buttons {"OK"} default button 1
end if
end tell
end tell