You are here: Home → Forum Home → The Mac Observer Forums → Design & Create → Thread
appleScript to disable screen saver
-
New2Mac 2007
- [ Ignore ]
I am new to AppleScript and would like to write a script to disable the screen saver. Where do I start? How do I do this? Also, please help me understand what documentation I use to learn how to do this?
Signature
Wow this is so much better then my old Mac Plus!
Steve -
Hey Steve,
Here is a sample code from Apple’s AppleScript Page:
try
tell application id "com.apple.ScreenSaver.Engine" to launch
end trySo you could try an modify that to a stay open applescript (which means you select “Application” as your file format when you save the script in Script Editor).
--untested
on idle
try
tell application id "com.apple.ScreenSaver.Engine" to quit
end try
return 5
end idleThat being said, there’s probably a better way. Try googling for “disable screen saver (mac OR leopard)”.
Hope this helps!
[ Edited: 05 December 2008 01:35 PM by Stephen Swift ] -
Wow great site for Applescript. I was having difficulty finding many tutorials, but this site seems pretty good. For me the applescripting will be more for practice & to know that I can. I build a little in secondlife too. It is fun. Glad to be here.

