• 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: Toggle Screensaver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toggle Screensaver


  • Subject: Re: Toggle Screensaver
  • From: kai <email@hidden>
  • Date: Sat, 18 Feb 2006 00:10:14 +0000


On 17 Feb 2006, at 23:03, Adam Bell wrote:

I started using the pmset instructions to induce display sleep (which used to be dim) rather than screensaving a long time ago because it wasn't clear that the ScreenSaverEngine read it's preferences if you didn't invoke the panel. Perhaps it does now.

It does here.

-----

set f to (path to preferences folder as Unicode text) & "ByHost"
tell application "Finder" to set p to ((folder f's first file whose ¬
	name starts with "com.apple.screensaver" and name ¬
	does not contain "slideshow") as Unicode text)'s POSIX path
tell application "System Events" to tell property list item ¬
	"idleTime" of property list file p to if value is 0 then
	set value to 180
else
	set value to 0
end if

-----

---
kai


_______________________________________________ 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: 
 >Re: Toggle Screensaver (From: Stan Cleveland <email@hidden>)
 >Re: Toggle Screensaver (From: "Adam Bell" <email@hidden>)

  • Prev by Date: Re: do shell script- sed conundrum
  • Next by Date: Re: Toggle Screensaver
  • Previous by thread: Re: Toggle Screensaver
  • Next by thread: Re: Toggle Screensaver
  • Index(es):
    • Date
    • Thread