macOS High Sierra Screen Lock je nach Tageszeit?

vandal

vandal

Aktives Mitglied
Thread Starter
Dabei seit
24.01.2008
Beiträge
121
Reaktionspunkte
1
Hallo zusammen,

ich würde ganz gerne tagsüber meinen Rechner per Screen Lock & Login Passwort schützen, abends aber nicht mehr. Gibt es eine Möglichkeit diese Einstellungen per Applescript o.ä. zu ändern?

Tausend Dank,
V
 
http://www.macosxautomation.com/applescript/features/system-prefs.html
A script demonstrating how to get and set the basic computer security settings:
Code:
tell application "System Events"
 tell security preferences
 get properties
 --> returns: {require password to wake:false, class:security preferences object, secure virtual memory:false, require password to unlock:false, automatic login:false, log out when inactive:false, log out when inactive interval:60}
 set properties to {require password to wake:false, secure virtual memory:false, require password to unlock:false, automatic login:false, log out when inactive:false, log out when inactive interval:60}
 end tell
end tell
 
  • Gefällt mir
Reaktionen: vandal
Zurück
Oben Unten