• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Screen saver scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen saver scripting


  • Subject: Re: Screen saver scripting
  • From: Gnarlodious <email@hidden>
  • Date: Thu, 13 Oct 2005 14:53:50 -0600
  • Thread-topic: Screen saver scripting

Title: Re: Screen saver scripting
Entity Russell McGaha spoke thus:

>      I've got another question about scripting the screen saver.
>           I need to turn the screen save off for part of the day,  
> then turn it back on for the rest; does anyone know if this is  
> possible??

Seems very likely. This script locks the screen, but use it to get you started.

set previousState to do shell script "defaults -currentHost read com.apple.screensaver askForPassword  "
do shell script "defaults -currentHost write com.apple.screensaver askForPassword 1"
tell application "ScreenSaverEngine" to run
do shell script "defaults -currentHost write com.apple.screensaver askForPassword " & previousState


-- Gnarlie's Applescript page:
http://Gnarlodious.com/Apple/AppleScript/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Screen saver scripting (From: Russell McGaha <email@hidden>)

  • Prev by Date: Re: Screen saver scripting
  • Next by Date: Re: date of question
  • Previous by thread: Re: Screen saver scripting
  • Next by thread: system events XML suite -- it seems to be caching and holding XML objects
  • Index(es):
    • Date
    • Thread