• Das kreative Thema des Monats Oktober wird vor allem diejenigen unter Euch besonders ansprechen, denen Do-it-yourself quasi im Blut liegt. Zeigt uns Eure Improvisationskünste oder fotografiert, was andere Leute sich so im Alltag zusammengestrickt haben. --> Zum Mitmachen bitte hier klicken

Proteus mit Skript trennen

Kernelpanik

Echter Boikenapfel
Registriert
05.03.04
Beiträge
2.342
Hallo Leute,
wiedermal ich, der mit Skripten nicht klar kommt. Hab schon einiges versucht aber es geht nicht.

tell application "System Events"
if (exists process "Proteus") then
tell application "Proteus" to disconnect every account
end if
end tell

geht net, oder:

tell application "Proteus"
to disconnect every account
end tell

geht auch net. Weiss jemand wie das richtig sein muss?
 
also wenn er sich nur disconneten soll geht das fürchte ich nicht ... du kannst proteus nur schließen. aber sieh selbst:
- öffne den skripteditor
- ablage - Funktionsverzeichnis öffnen
- proteus auswählen und befehle angucken

mfg andy
 
In der Proteus Suite gibt es den status: offline status. Aber eben... vor dem Skripten steh ich wie ne Kuh vorm Formel 1 Wagen.

tell application "Proteus"
set statuses to offline
end tell

geht auch net.
 
also

tell application "Proteus"
offline status
end tell


geht bei mir ...
 
Code:
tell application "Proteus"
offline status
end tell

Da rührt sich gar nix bei mir.
 
so hab jetzt mal proteus ausprobiert und es geht definitiv so:

tell application "Proteus"
set current status to offline status
end tell


mfg andy
 
  • Like
Reaktionen: Kernelpanik