shut down-Befehl ohne "beim nächsten Anmelden alle Fenster öffnen"

R

robert170

Aktives Mitglied
Thread Starter
Dabei seit
29.12.2006
Beiträge
797
Reaktionspunkte
27
Hallo,
ich nutze ein Script um beim Herunterfahren meinen Skype Status auf "abwesend" zu setzen. Das klappt auch gut, nur bewirkt der shut down-Befehl, dass die Option "beim nächsten Anmelden alle Fenster wieder öffnen" aktiviert ist. Das will ich aber nicht. Der Haken ist bei mir im Menü auch nicht gesetzt...
Hat jemand eine Idee, welchen Befehl bzw. welche Option man da verwendet?
Danke schonmal:
Hier das Script:
tell application "Finder"

tell application "System Events" to set SkypeIsRunning to (count of (every process whose name is "Skype")) > 0
if SkypeIsRunning then
tell application "Skype"
send command "SET USERSTATUS AWAY" script name "AWAY"
end tell
end if

shut down
end tell
 
Hmm, ich habe was gefunden unter
https://discussions.apple.com/message/11892126
Da wird folgendes Script für Snow-Leopard vorgeschlagen, das scheint aber unter Mavericks nicht zu funktionieren:
Vielleicht hat jemand eine Idee, wie man das anpassen kann...

tell application "System Events"
set ProcNm_ to name of every application process whose visible is true
repeat with i_ from 1 to count items of ProcNm_
set TarProc_ to item i_ of ProcNm_
try
tell application TarProc_ to quit
end try
end repeat
shut down
end tell
 
Zurück
Oben Unten