Re: Toggle Screensaver
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